summaryrefslogtreecommitdiffstats
path: root/scene/resources
diff options
context:
space:
mode:
authorKiro <mouton.guillaume88@gmail.com>2024-11-08 11:37:23 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-11-11 12:31:19 +0100
commit07b7f76896ba264772186c1b05b7fc5fa4b2f64d (patch)
treeddafe2784dffa558c94d76e460520881dece6d06 /scene/resources
parent0f5f3bc9546b46b2029fc8896dc859697f1eab97 (diff)
downloadredot-engine-07b7f76896ba264772186c1b05b7fc5fa4b2f64d.tar.gz
Improve `NavMeshGenerator2D::generator_bake_from_source_geometry_data` performance
Avoid copies and redundant work.
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/2d/navigation_mesh_source_geometry_data_2d.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/2d/navigation_mesh_source_geometry_data_2d.h b/scene/resources/2d/navigation_mesh_source_geometry_data_2d.h
index b29c106fb5..2812925770 100644
--- a/scene/resources/2d/navigation_mesh_source_geometry_data_2d.h
+++ b/scene/resources/2d/navigation_mesh_source_geometry_data_2d.h
@@ -36,6 +36,8 @@
#include "scene/resources/2d/navigation_polygon.h"
class NavigationMeshSourceGeometryData2D : public Resource {
+ friend class NavMeshGenerator2D;
+
GDCLASS(NavigationMeshSourceGeometryData2D, Resource);
RWLock geometry_rwlock;