Add curve mode setting for different types of data #3
6
ui.py
6
ui.py
@ -71,8 +71,10 @@ class SCRIB_PT_scribble_buddy_panel(bpy.types.Panel):
|
||||
else:
|
||||
surface_object = context.object
|
||||
layout.label(text=surface_object.name, icon='OUTLINER_OB_SURFACE')
|
||||
if surface_object:
|
||||
layout.prop(settings, 'curve_mode', expand=True)
|
||||
|
||||
layout.prop(settings, 'curve_mode', expand=True)
|
||||
if settings.curve_mode in ['CURVE', 'GP']:
|
||||
layout.label(text='Curve mode does not support drawing on deformed geometry', icon='ERROR')
|
||||
layout.operator("scribble_buddy.new_scribble", icon='GREASEPENCIL')
|
||||
|
||||
settings_header, settings_panel = layout.panel("scribble_settings", default_closed=True)
|
||||
|
Loading…
Reference in New Issue
Block a user