little fix in custom passepartout
1.4.1 - fix: custom passepartout size limit when dezooming in camera
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user