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 b908cacc4c - Show all commits

1
ops.py
View File

@ -34,6 +34,7 @@ class SCRIB_OT_new_scribble(bpy.types.Operator):
else:
if settings.curve_mode == 'CURVE':
scribble_data = bpy.data.curves.new(name, type='CURVE')
scribble_data.dimensions = '3D'
elif settings.curve_mode == 'CURVES':
scribble_data = bpy.data.hair_curves.new(name)
scribble_object = bpy.data.objects.new(name, scribble_data)