You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extends Node
var TIME_TO_DELETE : float = 1.0
var time_to_delete : float = TIME_TO_DELETE
var disabled_classes : Array = []
func _populate() -> void:
for _i in range(2): # Number of created
for name_of_class in ClassDB.get_class_list():
if name_of_class in disabled_classes:
continue
if !ClassDB.can_instance(name_of_class):
continue
add_child(ClassDB.instance(name_of_class))
# Populate at start
func _ready() -> void:
_populate()
# Move nodes a little and delete and readd them later
func _process(delta: float) -> void:
for i in get_children():
if i is Control:
i._set_size(Vector2(200 * randf() - 100, 200 * randf() - 100))
if i is Node2D:
i.set_position(Vector2(1000 * randf() - 500, 1000 * randf() - 500))
if i is Spatial:
if i.get_name() != "Camera":
i.set_scale(Vector3(delta + 1, delta + 1, delta + 1))
i.set_translation(Vector3(10 * randf(), 10 * randf(), 10 * randf()))
time_to_delete -= delta
if time_to_delete < 0:
time_to_delete += TIME_TO_DELETE
for i in get_children():
i.queue_free()
_populate()
The text was updated successfully, but these errors were encountered:
Godot version:
3.3.rc.custom_build. 7696f88
OS/device including version:
Ubuntu 20.04 CI
Issue description:
This errors are shown when adding, moving and removing nodes in project(thread sanitizer output)
CI - https://github.com/qarmin/RegressionTestProject/runs/2225466443?check_suite_focus=true
Steps to reproduce:
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: