-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Body problem in assembly when using shape binder #14373
Comments
Does it work when you manually drag both into the assembly object in the tree view? |
If you drag and drop bodies, everything works fine |
This is the same bug as #13780 We could add
to fix the case of subShapeBinder, but that cannot solve Draft clone case for instance, as those objects are @wwmayer is there not a clean way to get the tree-root-level objects? The tree is being build so there must be a way to get that. |
It doesn't work with the sub-shape binder (green icon) but works without problems with the shape binder (blue icon).
The method claimChildren() of a view provider shows the referenced objects as child items in the tree view. So, all objects that are not claimed by a view provider must be top-level objects. But does this really solve the problem? What happens if the two bodies are inside a Part container? |
So to get the tree root object you iterate through all the document objects, build the list of objects that are within at least one of the object VP claimChildren return function, then the root is the rest of the objects right? If so I will make a 'getTreeRootObject' in Gui. Yes it solves the problem because 'insert component' is building a tree starting from root objects. So if Part container is a root object, it will be picked up. Then it is iteratively browsed to build the tree so the bodies within are found. |
Is there an existing issue for this?
Problem description
If you use shape binder to create one of the bodies, the first body will not be available when adding bodies to the assembly
Full version info
Subproject(s) affected?
Assembly
Anything else?
https://youtu.be/f-PxEIDXzF4
Code of Conduct
The text was updated successfully, but these errors were encountered: