diff --git a/CHANGELOG.md b/CHANGELOG.md index eac1ca4..015a532 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +1.6.7 + +- fix: error with operator `OP_key_duplicate_send` poll flooding console + 1.6.6 - fix: inverted scene resolution from project environnement diff --git a/OP_key_duplicate_send.py b/OP_key_duplicate_send.py index 4e4931b..32c3c94 100644 --- a/OP_key_duplicate_send.py +++ b/OP_key_duplicate_send.py @@ -28,7 +28,8 @@ class GPTB_OT_duplicate_send_to_layer(Operator) : @classmethod def poll(cls, context): - return context.object and context.object.type == 'GPENCIL' and context.space_data.ui_mode == 'GPENCIL' + return context.object and context.object.type == 'GPENCIL'\ + and context.space_data.bl_rna.identifier == 'SpaceDopeSheetEditor' and context.space_data.ui_mode == 'GPENCIL' # history : bpy.props.StringProperty(default='', options={'SKIP_SAVE'}) # need to have a variable to store (to get it in self) diff --git a/__init__.py b/__init__.py index 03b6c1e..b68dc0f 100755 --- a/__init__.py +++ b/__init__.py @@ -15,7 +15,7 @@ bl_info = { "name": "GP toolbox", "description": "Set of tools for Grease Pencil in animation production", "author": "Samuel Bernou, Christophe Seux", -"version": (1, 6, 6), +"version": (1, 6, 7), "blender": (2, 91, 0), "location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties", "warning": "",