little fix in custom passepartout

1.4.1

- fix: custom passepartout size limit when dezooming in camera
This commit is contained in:
Pullusb
2021-06-06 21:30:46 +02:00
parent d8f71e3356
commit f10f572bdc
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ class GPTB_PT_sidebar_panel(bpy.types.Panel):
## Straight line ops from official greasepencil_tools addon if enabled.
# if any(x in context.preferences.addons.keys() for x in ('greasepencil_tools', 'greasepencil-addon')): # check enabled addons
if hasattr(bpy.types, bpy.ops.gp.straight_stroke.idname()): # check if operator exists
if hasattr(bpy.types, 'GP_OT_straight_stroke'): # check if operator exists : bpy.ops.gp.straight_stroke.idname()
layout.operator('gp.straight_stroke', icon ="CURVE_PATH")
## Options