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

View File

@ -33,6 +33,10 @@ def refresh_preset(dummy):
if not mod_info: if not mod_info:
mod_info = settings.preset_object.modifier_info.add() mod_info = settings.preset_object.modifier_info.add()
mod_info.name = mod.name mod_info.name = mod.name
if not mod.type == 'NODES':
continue
if not mod.node_group:
continue
for v in mod.node_group.interface.items_tree.values(): for v in mod.node_group.interface.items_tree.values():
if type(v) is bpy.types.NodeTreeInterfacePanel: if type(v) is bpy.types.NodeTreeInterfacePanel:
v_id = f'Panel_{v.index}' # TODO: replace with panel identifier once that is exposed in Blender 4.3 v_id = f'Panel_{v.index}' # TODO: replace with panel identifier once that is exposed in Blender 4.3