Fix animation manager with empty objects
2.3.2 - fixed: Bug with animation manager when there is image.empty object in scenegpv2
parent
798afbe82a
commit
990b18f665
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
2.3.2
|
||||||
|
|
||||||
|
- fixed: Bug with animation manager when there is empty object in scene
|
||||||
|
|
||||||
2.3.1
|
2.3.1
|
||||||
|
|
||||||
- changed: Animation manager show hints when animation is enabled: fully, partially or not at all.
|
- changed: Animation manager show hints when animation is enabled: fully, partially or not at all.
|
||||||
|
|
|
@ -4,7 +4,7 @@ bl_info = {
|
||||||
"name": "GP toolbox",
|
"name": "GP toolbox",
|
||||||
"description": "Tool set for Grease Pencil in animation production",
|
"description": "Tool set for Grease Pencil in animation production",
|
||||||
"author": "Samuel Bernou, Christophe Seux",
|
"author": "Samuel Bernou, Christophe Seux",
|
||||||
"version": (2, 3, 1),
|
"version": (2, 3, 2),
|
||||||
"blender": (3, 0, 0),
|
"blender": (3, 0, 0),
|
||||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
|
5
utils.py
5
utils.py
|
@ -1194,7 +1194,10 @@ def anim_status(objects) -> tuple((str, str)):
|
||||||
|
|
||||||
for o in objects:
|
for o in objects:
|
||||||
## Skip object with no animation
|
## 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):
|
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
|
continue
|
||||||
|
|
||||||
## Also skip hidden objects
|
## Also skip hidden objects
|
||||||
|
|
Loading…
Reference in New Issue