Jelajahi Sumber

Fix: Inherit Node sockets will not hide if they are connected.

This is a slapdash solution because these nodes are very common and it will take
a little more work to do this everywhere in a clean way. Basically, sockets that are
connected but should be hidden should not hide, and maybe they should even
have an error color or message. I judge this particular situation to be common
enough to warrant a fix now.
Joseph Brandenburg 7 bulan lalu
induk
melakukan
f6d7580473
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      link_definitions.py

+ 3 - 3
link_definitions.py

@@ -103,9 +103,9 @@ class LinkInheritNode(Node, LinkNode):
                 self.inputs["Inherit Scale"].hide    = False
                 self.inputs["Connected"].hide       = False
             else:
-                self.inputs["Inherit Rotation"].hide = True
-                self.inputs["Inherit Scale"].hide    = True
-                self.inputs["Connected"].hide        = True
+                self.inputs["Inherit Rotation"].hide = True or self.inputs["Inherit Rotation"].is_connected
+                self.inputs["Inherit Scale"].hide    = True or self.inputs["Inherit Scale"].is_connected
+                self.inputs["Connected"].hide        = True or self.inputs["Connected"].is_connected
             # the node_groups on the way here ought to be active if there
             #  is no funny business going on.