Przeglądaj źródła

UI: don't show drop-box when Curve socket is output

Joseph Brandenburg 6 miesięcy temu
rodzic
commit
81e232e61c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      socket_definitions.py

+ 1 - 1
socket_definitions.py

@@ -1064,7 +1064,7 @@ class EnumCurveSocket(MantisSocket):
     color_simple = cString
     color : bpy.props.FloatVectorProperty(default=cString, size=4)
     def draw(self, context, layout, node, text):
-        if not (self.is_linked):
+        if not (self.is_linked) and not self.is_output:
             layout.prop_search(data=self, property="search_prop", search_data=bpy.data, search_property="objects", text="", icon="CURVE_DATA", results_are_suggestions=True)
         else:
             try: