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

View File

@ -233,6 +233,11 @@ def get_surface_object(bs):
return None
return bs['BSBST_surface_object']
def set_surface_object(bs, ob):
if not bs:
return
bs['BSBST_surface_object'] = ob
def get_flow_object(bs):
if not bs:
return None
@ -240,6 +245,11 @@ def get_flow_object(bs):
return None
return bs['BSBST_flow_object']
def set_flow_object(bs, ob):
if not bs:
return
bs['BSBST_flow_object'] = ob
def context_brushstrokes(context):
settings = context.scene.BSBST_settings
return settings.context_brushstrokes