Fix some templates for 2.8.

This commit is contained in:
2018-11-14 18:19:41 +01:00
parent 844c7440fc
commit a4fccde67a
3 changed files with 8 additions and 6 deletions

View File

@@ -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)