Skip to content

Commit

Permalink
[fix bug]save seq properties when closing seq
Browse files Browse the repository at this point in the history
  • Loading branch information
wentww committed Dec 27, 2023
1 parent 8e51f06 commit 10f2ccb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/XRFeitoriaBpy/core/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ def close_sequence() -> None:
# clear all sequences in this level
for collection in level_scene.collection.children:
if XRFeitoriaBlenderFactory.is_sequence_collecion(collection):
# save sequence properties
XRFeitoriaBlenderFactory.set_sequence_properties(
collection=collection,
level=level_scene,
fps=level_scene.render.fps,
frame_start=level_scene.frame_start,
frame_end=level_scene.frame_end,
frame_current=level_scene.frame_current
)
# unlink the sequence from the level
XRFeitoriaBlenderFactory.unlink_collection_from_scene(collection=collection, scene=level_scene)
# restore level actors' properties
Expand Down

0 comments on commit 10f2ccb

Please sign in to comment.