You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
small hack to make collisionobjects work with replace, fixes #2992
This commit is contained in:
@@ -1268,6 +1268,11 @@ void SceneTreeDock::_create() {
|
||||
editor->set_edited_scene(newnode);
|
||||
}
|
||||
|
||||
//small hack to make collisionshapes and other kind of nodes to work
|
||||
for(int i=0;i<newnode->get_child_count();i++) {
|
||||
Node *c=newnode->get_child(i);
|
||||
c->call("set_transform", c->call("get_transform") );
|
||||
}
|
||||
editor_data->get_undo_redo().clear_history();
|
||||
newnode->set_name(newname);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user