1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fix a crash with Godot 4.3

This commit is contained in:
Emmanouil Papadeas 2024-07-31 20:55:02 +03:00
parent 7063af098f
commit af81154cbf

View file

@ -92,7 +92,7 @@ func _notification(what: int) -> void:
await get_tree().process_frame
hsv_rectangle_control.custom_minimum_size = Vector2(32, 32)
shape_aspect_ratio.custom_minimum_size = Vector2(32, 32)
elif what == NOTIFICATION_TRANSLATION_CHANGED:
elif what == NOTIFICATION_TRANSLATION_CHANGED and is_instance_valid(left_color_rect):
_average(left_color_rect.color, right_color_rect.color)