Skip to content

Commit

Permalink
Fix for appleseedhq#504
Browse files Browse the repository at this point in the history
  • Loading branch information
jdent02 committed Apr 6, 2020
1 parent c1a9ed6 commit 66f9313
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions properties/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ def draw_buttons(self, context, layout):
image = getattr(self, (x['name']))
layout.prop(image, "filepath", text="Filepath")
else:
if hasattr(self, "%s_use_node" % x['label']):
socket_number += 1
if getattr(self, param_section):
label_text = x['label']
if x['type'] in ('color', 'vector', 'float[2]'):
Expand All @@ -117,8 +115,11 @@ def draw_buttons(self, context, layout):
col.prop(self, x['name'], text=label_text)
col = split.column(align=True)
col.prop(self, "%s_use_node" % x['label'], text="", toggle=True, icon='NODETREE')
socket_number += 1
else:
layout.prop(self, x['name'], text=label_text)
elif hasattr(self, "%s_use_node" % x['label']):
socket_number += 1
else:
socket_number += 1

Expand Down

0 comments on commit 66f9313

Please sign in to comment.