diff --git a/nodes.py b/nodes.py index 9fb4f1e..12fd6bf 100644 --- a/nodes.py +++ b/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)