parent
e0a50ea49a
commit
caa3187772
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
2.0.10
|
||||
|
||||
- fix: poll error in console
|
||||
|
||||
2.0.9
|
||||
|
||||
- fix: prefix/suffix UIlist actions trigger UI redraw to see changes live
|
||||
|
|
|
@ -31,7 +31,8 @@ class GPTB_OT_flipx_view(bpy.types.Operator):
|
|||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return context.region_data.view_perspective == 'CAMERA'
|
||||
return context.area.type == 'VIEW_3D' and \
|
||||
context.region_data.view_perspective == 'CAMERA'
|
||||
|
||||
def execute(self, context):
|
||||
context.scene.camera.scale.x *= -1
|
||||
|
@ -251,7 +252,8 @@ class GPTB_OT_set_view_as_cam(bpy.types.Operator):
|
|||
|
||||
@classmethod
|
||||
def poll(cls, context):
|
||||
return context.region_data.view_perspective != 'CAMERA'# need to be out of camera
|
||||
return context.area.type == 'VIEW_3D' and \
|
||||
context.region_data.view_perspective != 'CAMERA'# need to be out of camera
|
||||
# return context.scene.camera and not context.scene.camera.name.startswith('Cam')
|
||||
|
||||
def execute(self, context):
|
||||
|
|
|
@ -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, 0, 9),
|
||||
"version": (2, 0, 10),
|
||||
"blender": (3, 0, 0),
|
||||
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
|
||||
"warning": "",
|
||||
|
|
Loading…
Reference in New Issue