Merge pull request 'Update shader data and custom particles' (#53) from Onek8/LNXSDK:main into main

Reviewed-on: LeenkxTeam/LNXSDK#53
This commit is contained in:
LeenkxTeam 2025-05-17 08:45:06 +00:00
commit 9142371f88
2 changed files with 19 additions and 0 deletions

Binary file not shown.

View File

@ -77,6 +77,25 @@ class LNX_MT_NodeAddOverride(bpy.types.Menu):
layout.separator() layout.separator()
layout.menu(f'LNX_MT_{INTERNAL_GROUPS_MENU_ID}_menu', text=internal_groups_menu_class.bl_label, icon='OUTLINER_OB_GROUP_INSTANCE') layout.menu(f'LNX_MT_{INTERNAL_GROUPS_MENU_ID}_menu', text=internal_groups_menu_class.bl_label, icon='OUTLINER_OB_GROUP_INSTANCE')
elif context.space_data.tree_type == 'ShaderNodeTree':
# TO DO - Recursively gather nodes and draw them to menu
LNX_MT_NodeAddOverride.overridden_draw(self, context)
layout = self.layout
layout.separator()
layout.separator()
col = layout.column()
col.label(text="Custom")
shader_data_op = col.operator("node.add_node", text="Shader Data")
shader_data_op.type = "LnxShaderDataNode"
shader_data_op.use_transform = True
particle_op = col.operator("node.add_node", text="Custom Particle")
particle_op.type = "LnxCustomParticleNode"
particle_op.use_transform = True
else: else:
LNX_MT_NodeAddOverride.overridden_draw(self, context) LNX_MT_NodeAddOverride.overridden_draw(self, context)