fix debug errors and warnings

This commit is contained in:
2026-06-02 10:33:18 +02:00
parent 47a2bf5a2e
commit 97a8ce3f9c
44 changed files with 64 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
[gd_resource type="ShaderMaterial" format=3 uid="uid://cknq8qhom7ral"]
[ext_resource type="Shader" uid="uid://c0gopfoe0ij8g" path="res://Shaders/Shadow_postProcess.gdshader" id="1_23efu"]
[ext_resource type="FastNoiseLite" uid="uid://c0mtwrkptjcuw" path="res://Assets/Textures/Noise_Clouds.tres" id="2_n0ip8"]
[ext_resource type="Shader" uid="uid://b5wa82soyhsqm" path="res://core/daynight/environment_shadows.gdshader" id="1_23efu"]
[ext_resource type="FastNoiseLite" uid="uid://c0mtwrkptjcuw" path="res://core/daynight/environment_shadows_noise_clouds.tres" id="2_n0ip8"]
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_5lko7"]
noise = ExtResource("2_n0ip8")

View File

@@ -1,6 +1,6 @@
[gd_resource type="ShaderMaterial" format=3 uid="uid://cwbxvmtih5wsc"]
[ext_resource type="Shader" uid="uid://dkmdtejrbks8n" path="res://Shaders/godrays.gdshader" id="1_pbkwa"]
[ext_resource type="Shader" uid="uid://caavljcth87so" path="res://core/daynight/godrays.gdshader" id="1_pbkwa"]
[sub_resource type="FastNoiseLite" id="FastNoiseLite_xa3jw"]
noise_type = 3

View File

@@ -70,5 +70,9 @@ func warmup() -> void:
quad.material_override = mat
await get_tree().process_frame # one frame renders the quad with this material
quad.material_override = null
quad.mesh = null
valid.clear()
vp.queue_free()
await get_tree().process_frame
print("[ShaderWarmup] Done.")

View File

@@ -33,7 +33,7 @@ func start_tween() -> void:
_tween_generation += 1
var current_gen = _tween_generation
var sorted_targets = targets.duplicate() if !targets.is_empty() else runtime_target_parent.get_children().duplicate()
var sorted_targets: Array[Control] = _get_current_targets()
match order:
AnimateOrder.TOP_TO_BOTTOM:
@@ -80,7 +80,23 @@ func start_tween() -> void:
func stop_tween() -> void:
is_running = false
_tween_generation += 1
var current_targets = targets if !targets.is_empty() else runtime_target_parent.get_children()
var current_targets: Array[Control] = _get_current_targets()
for target in current_targets:
if is_instance_valid(target):
TweenFX.stop_all(target)
func _get_current_targets() -> Array[Control]:
if !targets.is_empty():
return targets.duplicate()
var current_targets: Array[Control] = []
if runtime_target_parent == null:
return current_targets
for child in runtime_target_parent.get_children():
var target := child as Control
if target != null:
current_targets.append(target)
return current_targets