Assembly: Introduce core functionality of assembly workbench.

This commit is contained in:
Paddle
2023-09-20 18:45:47 +02:00
committed by PaddleStroke
parent 13d4cb128a
commit d77cd7acf5
39 changed files with 4229 additions and 391 deletions

View File

@@ -244,3 +244,11 @@ def color_from_unsigned(c):
float(int((c >> 16) & 0xFF) / 255),
float(int((c >> 8) & 0xFF) / 255),
]
def getJointGroup(assembly):
joint_group = assembly.getObject("Joints")
if not joint_group:
joint_group = assembly.newObject("Assembly::JointGroup", "Joints")
return joint_group