Explorar el Código

Merge pull request #12413 from Adinimys/master

Fixes infinite loop in NavPolygonInstance warnings
Rémi Verschelde hace 8 años
padre
commit
2987e6ce4f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scene/2d/navigation_polygon.cpp

+ 1 - 1
scene/2d/navigation_polygon.cpp

@@ -452,7 +452,7 @@ String NavigationPolygonInstance::get_configuration_warning() const {
 			return String();
 		}
 
-		c = Object::cast_to<Node2D>(get_parent());
+		c = Object::cast_to<Node2D>(c->get_parent());
 	}
 
 	return TTR("NavigationPolygonInstance must be a child or grandchild to a Navigation2D node. It only provides navigation data.");