Brushstroke Tools: Initial Version #328
@ -266,7 +266,8 @@ def draw_effect_panel_recursive(effects_panel, material, prev_node):
|
|||||||
def draw_advanced_settings(layout, settings):
|
def draw_advanced_settings(layout, settings):
|
||||||
new_advanced_header, new_advanced_panel = layout.panel("new_advanced", default_closed=True)
|
new_advanced_header, new_advanced_panel = layout.panel("new_advanced", default_closed=True)
|
||||||
new_advanced_header.label(text='Advanced')
|
new_advanced_header.label(text='Advanced')
|
||||||
if new_advanced_panel:
|
if not new_advanced_panel:
|
||||||
|
return
|
||||||
new_advanced_panel.row().prop(settings, 'curve_mode', expand=True)
|
new_advanced_panel.row().prop(settings, 'curve_mode', expand=True)
|
||||||
if settings.curve_mode in ['CURVE', 'GP']:
|
if settings.curve_mode in ['CURVE', 'GP']:
|
||||||
new_advanced_panel.label(text='Curve mode does not support drawing on deformed geometry', icon='ERROR')
|
new_advanced_panel.label(text='Curve mode does not support drawing on deformed geometry', icon='ERROR')
|
||||||
@ -344,8 +345,11 @@ def draw_settings_properties(layout, settings, style_object):
|
|||||||
layout.prop(style_object, 'visible_shadow', icon='LIGHT', emboss=True)
|
layout.prop(style_object, 'visible_shadow', icon='LIGHT', emboss=True)
|
||||||
|
|
||||||
def draw_properties_panel(layout, settings, style_object, surface_object, is_preset, display_mode):
|
def draw_properties_panel(layout, settings, style_object, surface_object, is_preset, display_mode):
|
||||||
|
|
||||||
|
layout.separator(type='LINE')
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
row.prop(settings, 'view_tab', expand=True)
|
row.prop(settings, 'view_tab', expand=True)
|
||||||
|
layout.separator(factor=.0, type='SPACE')
|
||||||
|
|
||||||
if settings.view_tab == 'MATERIAL':
|
if settings.view_tab == 'MATERIAL':
|
||||||
draw_material_properties(layout, settings, surface_object)
|
draw_material_properties(layout, settings, surface_object)
|
||||||
|
Loading…
Reference in New Issue
Block a user