Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DLM |
Im trying to make a tool script to add trimesh collision to multiple meshes in a scene but when i run the script i get an arror
modules/gdscript/gdscript.cpp:572 - Condition "!p_keep_state && has_instances" is true. Returned: ERR_ALREADY_IN_USE
here is my code
tool
extends Node
func _ready():
if Engine.editor_hint:
for child in get_children():
if child is MeshInstance:
child.create_trimesh_collision()