Assembly: Store DocumentObject instead of mbdPart for the dragged parts. Fixing the bug where doDragStep was 50% of time failing to find the correct DocumentObject due to bundling.

This commit is contained in:
PaddleStroke
2024-11-18 14:15:48 +01:00
committed by Yorik van Havre
parent 8ea82a849c
commit a174d87fac
2 changed files with 28 additions and 15 deletions

View File

@@ -250,7 +250,7 @@ private:
std::unordered_map<App::DocumentObject*, MbDPartData> objectPartMap;
std::vector<std::pair<App::DocumentObject*, double>> objMasses;
std::vector<std::shared_ptr<MbD::ASMTPart>> dragMbdParts;
std::vector<App::DocumentObject*> draggedParts;
std::vector<std::pair<App::DocumentObject*, Base::Placement>> previousPositions;