Skip to content

Commit

Permalink
minor changes to nodes names
Browse files Browse the repository at this point in the history
  • Loading branch information
REDxEYE committed Mar 10, 2020
1 parent 9b2dc08 commit 6bcddea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
5 changes: 0 additions & 5 deletions wmd_nodes/nodes/output_model_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ def init(self, context):
self.inputs.new('PragmaBodygroupSocket', "Bodygroups").link_limit = 4096
self.inputs.new('PragmaSkinSocket', "Skin")


# Additional buttons displayed on the node.
def draw_buttons(self, context, layout):
layout.prop(self, 'model_name_prop')
layout.operator("pragma.evaluate_nodetree")

def draw_label(self):
return self.bl_label

@property
def model_name(self):
return self.model_name_prop
12 changes: 4 additions & 8 deletions wmd_nodes/nodes/skingroup_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class PragmaSkingroupNode(Node, PragmaModelTreeNode):
bl_idname = 'PragmaSkingroupNode'
bl_label = "Skingroup"

# bodygroup_name: bpy.props.StringProperty(name="Bodygroup name")

def init(self, context):
self.inputs.new('PragmaMaterialSocket', "Material")

Expand Down Expand Up @@ -70,14 +68,12 @@ def __str__(self):

class PragmaSkinNode(Node, PragmaModelTreeNode):
bl_idname = 'PragmaSkinNode'
bl_label = "Skins"

# bodygroup_name: bpy.props.StringProperty(name="Bodygroup name")
bl_label = "Skin"

def init(self, context):
self.inputs.new('PragmaSkinGroupSocket', "Skingroups")
self.inputs.new('PragmaSkinGroupSocket', "Skingroup")

self.outputs.new('PragmaSkinSocket', "Skins")
self.outputs.new('PragmaSkinSocket', "Skin")

def update(self, ):
unused_count = 0
Expand All @@ -88,7 +84,7 @@ def update(self, ):
for _ in range(unused_count - 1):
self.inputs.remove(self.inputs[-1])
if unused_count == 0:
self.inputs.new("PragmaSkinGroupSocket", "Skingroups")
self.inputs.new("PragmaSkinGroupSocket", "Skingroup")

def draw_buttons(self, context, layout):
self.update()
Expand Down

0 comments on commit 6bcddea

Please sign in to comment.