new addon simple_deform_helper #104464
@ -25,33 +25,34 @@ class SimpleDeformHelperToolPanel(Panel, GizmoUtils):
|
||||
|
||||
@staticmethod
|
||||
def draw_property(layout, context):
|
||||
cls = SimpleDeformHelperToolPanel
|
||||
pref = cls.pref_()
|
||||
if GizmoUtils.poll_simple_deform_public(context):
|
||||
cls = SimpleDeformHelperToolPanel
|
||||
pref = cls.pref_()
|
||||
|
||||
obj = context.object
|
||||
mod = obj.modifiers.active
|
||||
prop = obj.SimpleDeformGizmo_PropertyGroup
|
||||
obj = context.object
|
||||
mod = obj.modifiers.active
|
||||
prop = obj.SimpleDeformGizmo_PropertyGroup
|
||||
|
||||
ctrl_obj = mod.origin.SimpleDeformGizmo_PropertyGroup if mod.origin else prop
|
||||
ctrl_obj = mod.origin.SimpleDeformGizmo_PropertyGroup if mod.origin else prop
|
||||
|
||||
layout.prop(ctrl_obj,
|
||||
'origin_mode',
|
||||
text='')
|
||||
layout.prop(pref,
|
||||
'update_deform_wireframe',
|
||||
icon='MOD_WIREFRAME',
|
||||
text='')
|
||||
layout.prop(pref,
|
||||
'show_set_axis_button',
|
||||
icon='EMPTY_AXIS',
|
||||
text='')
|
||||
if pref.modifier_deform_method_is_bend:
|
||||
layout.prop(ctrl_obj,
|
||||
'origin_mode',
|
||||
text='')
|
||||
layout.prop(pref,
|
||||
'display_bend_axis_switch_gizmo',
|
||||
toggle=1)
|
||||
layout.prop(pref,
|
||||
'modifiers_limits_tolerance',
|
||||
text='')
|
||||
'update_deform_wireframe',
|
||||
icon='MOD_WIREFRAME',
|
||||
text='')
|
||||
layout.prop(pref,
|
||||
'show_set_axis_button',
|
||||
icon='EMPTY_AXIS',
|
||||
text='')
|
||||
if pref.modifier_deform_method_is_bend:
|
||||
layout.prop(pref,
|
||||
'display_bend_axis_switch_gizmo',
|
||||
toggle=1)
|
||||
layout.prop(pref,
|
||||
'modifiers_limits_tolerance',
|
||||
text='')
|
||||
|
||||
def draw_settings(self, context):
|
||||
show_in_settings = GizmoUtils.pref_().show_gizmo_property_location == 'ToolSettings'
|
||||
|
Loading…
Reference in New Issue
Block a user