From f4cd44ae81ca45ecb5189b2ad748d3511aa86704 Mon Sep 17 00:00:00 2001 From: cgtinker Date: Wed, 14 Jun 2023 18:45:06 +0200 Subject: [PATCH] init --- nodes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2