mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix GridMap cursor_instance transparency error spam
Fixes GridMap cursor_instance transparency error spam.
This commit is contained in:
parent
08705259f2
commit
fccba5b859
1 changed files with 4 additions and 3 deletions
|
|
@ -1262,9 +1262,10 @@ void GridMapEditor::_update_cursor_instance() {
|
|||
cursor_instance = RenderingServer::get_singleton()->instance_create2(cursor_mesh, scenario);
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue