Fix #10798: Fixes Change Type does not change icon

Problem : While replacing old node properties with new ones, we
also copy meta data of old node's icon

Solve: don't copy meta so don't override _editor_icon
This commit is contained in:
Orkun 2017-11-19 17:26:20 +03:00
parent 64caa4733c
commit 22bdad8bbe

View file

@ -1459,6 +1459,8 @@ void SceneTreeDock::_create() {
for (List<PropertyInfo>::Element *E = pinfo.front(); E; E = E->next()) {
if (!(E->get().usage & PROPERTY_USAGE_STORAGE))
continue;
if (E->get().name == "__meta__")
continue;
newnode->set(E->get().name, n->get(E->get().name));
}