Skip to content

Commit

Permalink
update to support newest gaffer version 0.59.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoschmitzky committed Jan 21, 2021
1 parent c1a0380 commit 289622c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nodes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def _on_plug_input_changed(self, plug):
pass


class GafferTaskNodeBase(Gaffer.TaskNode, GafferNodeBaseMixin):
class GafferTaskNodeBase(GafferDispatch.TaskNode, GafferNodeBaseMixin):
def __init__(self, name="BaseTask", hide_plugs=TASKS_PLUGS_TO_HIDE):
super(GafferTaskNodeBase, self).__init__(name)
self._setup_logger()
Expand Down Expand Up @@ -555,6 +555,12 @@ class Root(GafferTaskNodeBase):
def __init__(self, name="Root"):
super(Root, self).__init__(name)

type_plug = Gaffer.StringPlug("type", Gaffer.Plug.Direction.In)
type_plug.setValue(name)
Gaffer.MetadataAlgo.setReadOnly(type_plug, True)
Gaffer.Metadata.registerPlugValue(type_plug, "nodule:type", "")
self.addChild(type_plug)

Gaffer.Metadata.registerValue(self.__class__, "nodeGadget:color", _ARGUMENTS_COLOR)

in_plug = GafferDispatch.TaskNode.TaskPlug("in", Gaffer.Plug.Direction.In)
Expand Down

0 comments on commit 289622c

Please sign in to comment.