fix a poll error
1.6.7 - fix: error with operator `OP_key_duplicate_send` poll flooding consolegpv2
parent
884ee2a695
commit
ea772b297a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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": "",
|
||||
|
|
Loading…
Reference in New Issue