Assembly: define nested assemblies. Fixes 12440

This commit is contained in:
PaddleStroke
2024-03-11 17:48:14 +01:00
committed by Yorik van Havre
parent 687843ff41
commit ef010e6f7c
3 changed files with 54 additions and 0 deletions

View File

@@ -196,6 +196,12 @@ bool ViewProviderAssembly::setEdit(int ModNum)
this->getObject()->getDocument()->getName(),
this->getObject()->getNameInDocument());
// When we set edit, we update the grounded joints placements to support :
// - If user transformed the grounded object
// - For nested assemblies where the grounded object moves around.
auto* assembly = static_cast<AssemblyObject*>(getObject());
assembly->updateGroundedJointsPlacements();
setDragger();
return true;