Assembly: Prevent crash when toggling rigid of grounded sub assembly (#24761)

* Assembly: Prevent crash when toggling rigid of grounded sub assembly

* to squash

* to squash

* Update AssemblyLink.cpp
This commit is contained in:
PaddleStroke
2025-10-21 09:51:15 +02:00
committed by GitHub
parent 0ce82c4159
commit 80f5df8435
3 changed files with 31 additions and 0 deletions

View File

@@ -628,6 +628,12 @@ bool ViewProviderAssembly::canDragObjectIn3d(App::DocumentObject* obj) const
return false;
}
if (auto* asmLink = dynamic_cast<Assembly::AssemblyLink*>(obj)) {
if (!asmLink->isRigid()) {
return false;
}
}
auto* assemblyPart = getObject<AssemblyObject>();
// Check if the selected object is a child of the assembly