Fix some templates for 2.8.
This commit is contained in:
@@ -43,7 +43,7 @@ class MyCustomSocket(NodeSocket):
|
||||
# Optional function for drawing the socket input value
|
||||
def draw(self, context, layout, node, text):
|
||||
if self.is_output or self.is_linked:
|
||||
layout.label(text)
|
||||
layout.label(text=text)
|
||||
else:
|
||||
layout.prop(self, "my_enum_prop", text=text)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user