Rotation node display #5
6
nodes.py
6
nodes.py
@ -135,7 +135,11 @@ class NodeSocketQuaternion(bpy.types.NodeSocketStandard):
|
||||
)
|
||||
|
||||
def draw(self, context, layout, node, text):
|
||||
layout.label(text=text)
|
||||
if self.hide_value or self.is_output or self.is_linked:
|
||||
layout.label(text=text)
|
||||
else:
|
||||
gridflow = layout.grid_flow(columns=1, align=True)
|
||||
gridflow.prop(self, "default_value", text=text)
|
||||
|
||||
def draw_color(self, context, node):
|
||||
return (0.699, 0.281, 0.854, 1.0)
|
||||
|
Loading…
Reference in New Issue
Block a user