fix a poll error

1.6.7

- fix: error with operator `OP_key_duplicate_send` poll flooding console
gpv2
Pullusb 2021-09-25 20:03:02 +02:00
parent 884ee2a695
commit ea772b297a
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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": "",