Add curve mode setting for different types of data #3
1
ops.py
1
ops.py
@ -34,6 +34,7 @@ class SCRIB_OT_new_scribble(bpy.types.Operator):
|
|||||||
else:
|
else:
|
||||||
if settings.curve_mode == 'CURVE':
|
if settings.curve_mode == 'CURVE':
|
||||||
scribble_data = bpy.data.curves.new(name, type='CURVE')
|
scribble_data = bpy.data.curves.new(name, type='CURVE')
|
||||||
|
scribble_data.dimensions = '3D'
|
||||||
elif settings.curve_mode == 'CURVES':
|
elif settings.curve_mode == 'CURVES':
|
||||||
scribble_data = bpy.data.hair_curves.new(name)
|
scribble_data = bpy.data.hair_curves.new(name)
|
||||||
scribble_object = bpy.data.objects.new(name, scribble_data)
|
scribble_object = bpy.data.objects.new(name, scribble_data)
|
||||||
|
Loading…
Reference in New Issue
Block a user