Rotation node display #5

Open
Denys Hsu wants to merge 1 commits from cgtinker/powership:rotation_node into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

View File

@ -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)