-
-
Notifications
You must be signed in to change notification settings - Fork 13
When selecting a composite mesh with the cursor gizmo, ensure that the entire mesh is selected, rather than just that specific sub-mesh #103
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
base: main
Are you sure you want to change the base?
Conversation
…RootMesh as one line
…omposite mesh with select gizmo in ui/gizmos.js
…a variable (my mistake, sorry)
@Zishan-Rahman The parent mesh isn't visible. You don't want it to be but it needs to be to show the bounding box. Try
But check whether it has any unwanted effects. You may need to make it invisible when not selected. |
TODO: - Unset it when mesh is deselected - FIgure out why it somehow still isn't working yet
@Zishan-Rahman Looks like you're selecting an intermediate node, you need the top-level parent that has geometry. ![]() |
…bounding box properly TODO: Figure out how to reset parent mesh visibility upon deselection of composite mesh
I still need to figure out how to reset the parent mesh's visibility upon deselecting said mesh, and I also still need to look for any unwanted consequences of this change. |
@tracygardner I have a question: At present, are there any event handlers in FlockXR for what happens after a gizmo's action is enacted? Because, to the best of my knowledge, you click on the select gizmo, use it to select a mesh, and it's done. The bounding box only disappears when you click elsewhere within the canvas; even when you click on another mesh, the select gizmo's not active anymore so that mesh isn't selected. Is there any code to handle that? I tried writing some code to reset the parent mesh's visibility in the case where no mesh is picked (as defined in line 668 of the current |
I've opened this as a draft PR because there's just one small (read: big) problem: Focusing on the root mesh this way doesn’t show its bounding box, even though it’s meant to have one. Even through the editor, I can manually toggle the root mesh’s bounding box, but it still doesn’t show, and I don’t yet know why:

A clearer view of the inspector from the above scenario (even with the root mesh’s bounding box view turned on):
