Fix animation manager with empty objects

2.3.2

- fixed: Bug with animation manager when there is image.empty object in scene
This commit is contained in:
pullusb
2023-05-02 14:43:28 +02:00
parent 798afbe82a
commit 990b18f665
3 changed files with 10 additions and 3 deletions
+5 -2
View File
@@ -1194,8 +1194,11 @@ def anim_status(objects) -> tuple((str, str)):
for o in objects:
## Skip object with no animation
if not (o.animation_data and o.animation_data.action) and not (o.data.animation_data and o.data.animation_data.action):
continue
if not (o.animation_data and o.animation_data.action):
if o.type == 'EMPTY':
continue
if not (o.data.animation_data and o.data.animation_data.action):
continue
## Also skip hidden objects
if o.hide_get() and o.hide_render: