forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
18
leenkx/blender/lnx/logicnode/object/LN_mesh.py
Normal file
18
leenkx/blender/lnx/logicnode/object/LN_mesh.py
Normal file
@ -0,0 +1,18 @@
|
||||
import bpy
|
||||
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class MeshNode(LnxLogicTreeNode):
|
||||
"""Stores the given mesh as a variable."""
|
||||
bl_idname = 'LNMeshNode'
|
||||
bl_label = 'Mesh'
|
||||
lnx_version = 1
|
||||
|
||||
property0_get: HaxePointerProperty('property0_get', name='', type=bpy.types.Mesh)
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_output('LnxDynamicSocket', 'Mesh', is_var=True)
|
||||
|
||||
def draw_buttons(self, context, layout):
|
||||
layout.prop_search(self, 'property0_get', bpy.data, 'meshes', icon='NONE', text='')
|
Reference in New Issue
Block a user