diff --git a/CHANGELOG.md b/CHANGELOG.md index 09e25f2..723b8b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +2.3.2 + +- fixed: Bug with animation manager when there is empty object in scene + 2.3.1 - changed: Animation manager show hints when animation is enabled: fully, partially or not at all. diff --git a/__init__.py b/__init__.py index 779867e..61a04c4 100755 --- a/__init__.py +++ b/__init__.py @@ -4,7 +4,7 @@ bl_info = { "name": "GP toolbox", "description": "Tool set for Grease Pencil in animation production", "author": "Samuel Bernou, Christophe Seux", -"version": (2, 3, 1), +"version": (2, 3, 2), "blender": (3, 0, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "", diff --git a/utils.py b/utils.py index 3d5e213..16e0c51 100644 --- a/utils.py +++ b/utils.py @@ -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: