瀏覽代碼

Fix LINK/UNLINK console spam with navmeshes

Removed unnecessary debug messages. Fixes #10804
Bartłomiej T. Listwon 8 年之前
父節點
當前提交
956327d972
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      scene/3d/navigation.cpp

+ 1 - 5
scene/3d/navigation.cpp

@@ -34,9 +34,7 @@ void Navigation::_navmesh_link(int p_id) {
 	ERR_FAIL_COND(!navmesh_map.has(p_id));
 	NavMesh &nm = navmesh_map[p_id];
 	ERR_FAIL_COND(nm.linked);
-
-	print_line("LINK");
-
+	
 	DVector<Vector3> vertices = nm.navmesh->get_vertices();
 	int len = vertices.size();
 	if (len == 0)
@@ -144,8 +142,6 @@ void Navigation::_navmesh_unlink(int p_id) {
 	NavMesh &nm = navmesh_map[p_id];
 	ERR_FAIL_COND(!nm.linked);
 
-	print_line("UNLINK");
-
 	for (List<Polygon>::Element *E = nm.polygons.front(); E; E = E->next()) {
 
 		Polygon &p = E->get();