Assembly: Prevent crash when link to linkgroup in subassembly (#24125)

* Assembly: Prevent crash when link to linkgroup in subassembly

* ViewProviderAssembly: Additional crash failsafe.
This commit is contained in:
PaddleStroke
2025-09-23 18:06:01 +02:00
committed by GitHub
parent e72834b94c
commit ff1bde69fc
2 changed files with 8 additions and 0 deletions

View File

@@ -997,6 +997,11 @@ AssemblyObject::getConnectedParts(App::DocumentObject* part,
App::DocumentObject* obj1 = getMovingPartFromRef(this, joint, "Reference1");
App::DocumentObject* obj2 = getMovingPartFromRef(this, joint, "Reference2");
if (!obj1 || !obj2) {
continue;
}
if (obj1 == part) {
auto* ref =
dynamic_cast<App::PropertyXLinkSub*>(joint->getPropertyByName("Reference2"));