-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Debug "Visible Collision Shapes" checkbox creating "MeshInstance" #48085
Comments
Not a bug - in order to draw the debug shape, it needs to create a mesh instance. |
But this is new in 3.3. Now, when I have to do a for loop looking for nodes, it will give errors because it's passing by that node too. |
This was introduced by #46397. There are several solutions to this issue:
|
It would probably make sense to avoid adding nodes used for debug to the tree, actually. Maybe we could have something like:
|
Sounds good, and I'm wiling to do a PR for this (I never use VisualServer APIs before, so I can take a while to do it).
IMO this is another issue because it'd make #46397 obsolete. |
@trollodel That would be great if you're up for making the PR! It shouldn't be too complicated to do. You would just work with a RID instead of a mesh instance. Creation would be similar to this (using the mesh from the shape instead of the multimesh): Lines 458 to 460 in c7b97f0
And destroying would be like this: Line 515 in c7b97f0
You can test with the VisualServer equivalent on 3.x first (contact points are currently not working on master, so it's just to be sure you're not stuck because of a similar bug in the new rendering system).
Also my fix from #47848 using
Yeah, it's fine. This can be changed separately. |
@pouleyKetchoupp Thanks for the guidance! |
I have the same problem. |
By the way, there is probably a reason for another error report, but my collision shape changes dynamically, but after changing the collision shape, the rendering mesh serving just remains a dead weight without changes and completely useless confusing. |
@OlexiyKravchuk Yes, please open an issue with a minimal project and repro steps so it can be investigated. |
@pouleyKetchoupp ready |
Godot version:
3.3
OS/device including version:
Windows 64 bit
Issue description:
MeshInstance is created for each collision shape when checking the "Visible Collision Shapes" in Debug Menu
Steps to reproduce:
Just import the zip .tscn or recreate the scene with the nodes as shown in the images above. Run it! and check the "Remote" view tree.
Minimal reproduction project:
issue.zip
The text was updated successfully, but these errors were encountered: