Skip to content

Commit

Permalink
made FrameAnimation3d also propagate texture_scale and texture_offset…
Browse files Browse the repository at this point in the history
… to frames.
  • Loading branch information
petteramland committed Jul 4, 2024
1 parent fe20811 commit 5ce2df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ursina/prefabs/frame_animation_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def current_frame(self):


def __setattr__(self, name, value):
if hasattr(self, 'frames') and name in ('color', 'origin', 'texture'):
if hasattr(self, 'frames') and name in ('color', 'origin', 'texture', 'texture_scale', 'texture_offset'):
for f in self.frames:
setattr(f, name, value)

Expand Down

0 comments on commit 5ce2df8

Please sign in to comment.