diff --git a/.gitignore b/.gitignore index ee530ad..4e9ad01 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ logs/ TEMP/ #export_presets.cfg logs/ +.godot/editor diff --git a/Autoload/Autoload.gd b/Autoload/Autoload.gd index a56af8d..61738c4 100644 --- a/Autoload/Autoload.gd +++ b/Autoload/Autoload.gd @@ -30,7 +30,7 @@ const alone_steps : Array = [ # This should be put regression scripts which needs to run only once const all_in_one : Array = [ "res://AIO/Operators/Operators.tscn", -"res://AIO/AllNodes/ALL.tscn", +#"res://AIO/AllNodes/ALL.tscn", ] func _init(): diff --git a/ReparentingDeleting/ReparentingDeleting.gd b/ReparentingDeleting/ReparentingDeleting.gd index 881467e..b97911c 100644 --- a/ReparentingDeleting/ReparentingDeleting.gd +++ b/ReparentingDeleting/ReparentingDeleting.gd @@ -223,14 +223,15 @@ func _process(delta: float) -> void: var random_node = find_node("Special Node " + str(randi() % number_of_nodes),true,false) parent_of_node.remove_child(choosen_node) - if randi() % 6 == 0: # 16% chance to remove node with children - var names_to_remove : Array = find_all_special_children_names(choosen_node) - for name_to_remove in names_to_remove: - var node : Node = node_to_handle_others.get_child(randi() % node_to_handle_others.get_child_count()).duplicate(0) - node.set_name(name_to_remove) - add_child(node) - choosen_node.queue_free() - continue +# # Do not delete for now due https://github.com/godotengine/godot/issues/45471 +# if randi() % 6 == 0: # 16% chance to remove node with children +# var names_to_remove : Array = find_all_special_children_names(choosen_node) +# for name_to_remove in names_to_remove: +# var node : Node = node_to_handle_others.get_child(randi() % node_to_handle_others.get_child_count()).duplicate(0) +# node.set_name(name_to_remove) +# add_child(node) +# choosen_node.queue_free() +# continue if choosen_node.find_node(random_node.get_name(),true,false) != null: # Cannot set as node parent one of its child