Skip to content

Commit fd2843e

Browse files
committed
Fixes for minor warnings.
- And turning warnings on in addons.
1 parent 5b40592 commit fd2843e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

addons/runtime_debug_tools/scripts/debug_runtime_interaction_2d.gd

+1-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func _ready():
6565
_debug_camera.enabled = false
6666
_ignore_nodes(get_parent())
6767

68-
func _process(delta: float) -> void:
68+
func _process(_delta: float) -> void:
6969
if not _is_active:
7070
return
7171

@@ -198,7 +198,6 @@ func _find_nearest_node_instersecting_point_2d(point: Vector2) -> Node2D:
198198
# or CanvasLayers
199199
var control_node := node as Control
200200
if control_node.visible and control_node.z_index >= best_z_index:
201-
var rect := control_node.get_global_rect()
202201
if control_node.get_global_rect().has_point(point):
203202
best_z_index = control_node.z_index
204203
nearest_node = node

addons/runtime_debug_tools/scripts/debug_runtime_interaction_3d.gd

+2-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ func _get_mesh_ray_intersection(
250250
var local_ray_dir = local_ray_end - local_ray_start
251251

252252
var aabb := mesh.get_aabb()
253-
var aabb_intersect := aabb.intersects_ray(local_ray_start, local_ray_dir)
253+
var aabb_intersect = aabb.intersects_ray(local_ray_start, local_ray_dir)
254254
if aabb_intersect == null:
255255
return null
256256

@@ -267,7 +267,7 @@ func _get_mesh_ray_intersection(
267267

268268
_full_mesh_check_count += 1
269269
for idx in range(0, num_faces, 3):
270-
var tri_intersect := Geometry3D.ray_intersects_triangle(
270+
var tri_intersect = Geometry3D.ray_intersects_triangle(
271271
local_ray_start, local_ray_dir, faces[idx], faces[idx+1], faces[idx+2])
272272
if tri_intersect:
273273
var tri_intersect_dist: float = (tri_intersect - local_ray_start).length_squared()
@@ -280,4 +280,3 @@ func _get_mesh_ray_intersection(
280280
return transform * found_best_intersection
281281

282282
return null
283-

addons/runtime_debug_tools/scripts/debugger_runtime.gd

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ var _interaction = null
1111

1212
@onready var _debug_ui := $DebugUI as Node
1313
@onready var _debug_label := $DebugUI/DebugLabel as Label
14-
var _selected_node : Node = null
1514
var _showing_collision_shapes := false
1615
var _pause_on_debug := false
1716

project.godot

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ config/icon="res://icon.svg"
1919

2020
RuntimeDebugTools="*res://addons/runtime_debug_tools/scenes/remote_inspector.tscn"
2121

22+
[debug]
23+
24+
gdscript/warnings/exclude_addons=false
25+
2226
[display]
2327

2428
window/size/initial_position_type=3

0 commit comments

Comments
 (0)