Browse Source

Add base class to Python node socket classes.

This adds the necessary alias properties used by socket connection
functions.
pull/65/head
Joseph Davies 7 years ago
parent
commit
0fa352c563
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 4
      korman/nodes/node_python.py

4
korman/nodes/node_python.py

@ -259,7 +259,7 @@ class PlasmaPythonFileNode(PlasmaNodeBase, bpy.types.Node):
self.inputs.remove(unconnected.pop())
class PlasmaPythonFileNodeSocket(bpy.types.NodeSocket):
class PlasmaPythonFileNodeSocket(PlasmaNodeSocketBase, bpy.types.NodeSocket):
attribute_id = IntProperty(options={"HIDDEN"})
@property
@ -291,7 +291,7 @@ class PlasmaPythonFileNodeSocket(bpy.types.NodeSocket):
return self.node.attribute_map[self.attribute_id].simple_value
class PlasmaPythonAttribNodeSocket(bpy.types.NodeSocket):
class PlasmaPythonAttribNodeSocket(PlasmaNodeSocketBase, bpy.types.NodeSocket):
def draw(self, context, layout, node, text):
attrib = node.to_socket
if attrib is None:

Loading…
Cancel
Save