Merge pull request #112301 from smix8/grid_curser

Fix GridMap `cursor_instance` transparency error spam
This commit is contained in:
Rémi Verschelde
2025-11-26 23:43:42 +01:00

View File

@ -1301,9 +1301,10 @@ void GridMapEditor::_update_cursor_instance() {
cursor_instance = RenderingServer::get_singleton()->instance_create2(cursor_mesh, scenario);
}
// Make the cursor translucent so that it can be distinguished from already-placed tiles.
RenderingServer::get_singleton()->instance_geometry_set_transparency(cursor_instance, 0.5);
if (cursor_instance.is_valid()) {
// Make the cursor translucent so that it can be distinguished from already-placed tiles.
RenderingServer::get_singleton()->instance_geometry_set_transparency(cursor_instance, 0.5);
}
_update_cursor_transform();
}