Add curve mode setting for different types of data #3

Merged
Simon Thommes merged 6 commits from add-curve-modes into master 2024-03-15 17:26:52 +01:00
Showing only changes of commit 290c0d5ca4 - Show all commits

4
ui.py
View File

@ -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)
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)