summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorQuentin Guidée <quentin.guidee@gmail.com>2022-12-20 14:23:47 -0500
committerQuentin Guidée <quentin.guidee@gmail.com>2022-12-20 14:26:15 -0500
commitd9c05f7fbd61c76a237165c9f691b7ea493bdfe6 (patch)
treef647f5dd4fe3c237ab1b9b2232e9fa68eb1a30f7 /modules
parent2a04b18d37de6c6e621db5a9dfd1cd0da5ccb015 (diff)
Fix double get_singleton()
Signed-off-by: Quentin Guidée <quentin.guidee@gmail.com>
Diffstat (limited to 'modules')
-rw-r--r--modules/gridmap/grid_map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp
index e594153058..d5db66d648 100644
--- a/modules/gridmap/grid_map.cpp
+++ b/modules/gridmap/grid_map.cpp
@@ -74,7 +74,7 @@ bool GridMap::_set(const StringName &p_name, const Variant &p_value) {
bm.mesh = meshes[i];
ERR_CONTINUE(!bm.mesh.is_valid());
bm.instance = RS::get_singleton()->instance_create();
- RS::get_singleton()->get_singleton()->instance_set_base(bm.instance, bm.mesh->get_rid());
+ RS::get_singleton()->instance_set_base(bm.instance, bm.mesh->get_rid());
RS::get_singleton()->instance_attach_object_instance_id(bm.instance, get_instance_id());
if (is_inside_tree()) {
RS::get_singleton()->instance_set_scenario(bm.instance, get_world_3d()->get_scenario());
@@ -1296,7 +1296,7 @@ void GridMap::make_baked_meshes(bool p_gen_lightmap_uv, float p_lightmap_uv_texe
BakedMesh bm;
bm.mesh = mesh;
bm.instance = RS::get_singleton()->instance_create();
- RS::get_singleton()->get_singleton()->instance_set_base(bm.instance, bm.mesh->get_rid());
+ RS::get_singleton()->instance_set_base(bm.instance, bm.mesh->get_rid());
RS::get_singleton()->instance_attach_object_instance_id(bm.instance, get_instance_id());
if (is_inside_tree()) {
RS::get_singleton()->instance_set_scenario(bm.instance, get_world_3d()->get_scenario());