Skip to content

Commit

Permalink
Ensure all fixtures keyframe data in Blender 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Mar 27, 2024
1 parent 719afa4 commit 30f1716
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions panels/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ def clear_animation_data(fixture):
obj.animation_data.action = None
obj.animation_data_clear()

if "gobo" in obj.get("geometry_type", ""):
material = fixture.gobo_materials[obj.name].material
material_tree = material.node_tree

if material_tree.animation_data:
material_tree.animation_data.action = None
material_tree.animation_data_clear()

for emitter_material in fixture.emitter_materials:
etree = emitter_material.material.node_tree

Expand Down

0 comments on commit 30f1716

Please sign in to comment.