mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Merge pull request #64147 from smix8/fix_navigationregion3d_debug_doublerender_4.x
Fix NavigationRegion3D debug mesh rendering twice in Editor
This commit is contained in:
commit
e9e9e92e48
@ -363,6 +363,12 @@ NavigationRegion3D::~NavigationRegion3D() {
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
void NavigationRegion3D::_update_debug_mesh() {
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
// don't update inside Editor as node 3d gizmo takes care of this
|
||||
// as collisions and selections for Editor Viewport need to be updated
|
||||
return;
|
||||
}
|
||||
|
||||
if (!NavigationServer3D::get_singleton()->get_debug_enabled()) {
|
||||
if (debug_instance.is_valid()) {
|
||||
RS::get_singleton()->instance_set_visible(debug_instance, false);
|
||||
|
Loading…
Reference in New Issue
Block a user