Skip to content

Commit

Permalink
Fix region grid not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
TokisanGames committed Jul 24, 2024
1 parent aff38b7 commit cb57596
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions project/addons/terrain_3d/editor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var editor: Terrain3DEditor
var ui: Node # Terrain3DUI see Godot #75388
var asset_dock: PanelContainer
var region_gizmo: RegionGizmo
var visible: bool
var current_region_position: Vector2
var mouse_global_position: Vector3 = Vector3.ZERO

Expand Down Expand Up @@ -231,7 +230,7 @@ func _forward_3d_gui_input(p_viewport_camera: Camera3D, p_event: InputEvent) ->
func update_region_grid() -> void:
if not region_gizmo:
return
region_gizmo.set_hidden(not visible)
region_gizmo.set_hidden(not ui.visible)

if is_terrain_valid():
region_gizmo.show_rect = editor.get_tool() == Terrain3DEditor.REGION
Expand Down

0 comments on commit cb57596

Please sign in to comment.