Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
Showing only changes of commit cf4fc05f4a - Show all commits

View File

@ -103,6 +103,10 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
surface_object = context_object if context.object in context.selected_objects else None surface_object = context_object if context.object in context.selected_objects else None
flow_object = None flow_object = None
if not surface_object.data.uv_layers.active:
self.report({"ERROR"}, "Surface Object needs an available UV Map")
return {"CANCELLED"}
name = 'Brushstrokes' name = 'Brushstrokes'
brushstrokes_object = self.new_brushstrokes_object(context, name) brushstrokes_object = self.new_brushstrokes_object(context, name)
flow_is_required = settings.brushstroke_method == 'SURFACE_FILL' flow_is_required = settings.brushstroke_method == 'SURFACE_FILL'