From 22bdad8bbe2306d5b3ccaeb25483b39fc760de53 Mon Sep 17 00:00:00 2001 From: Orkun Date: Sun, 19 Nov 2017 17:26:20 +0300 Subject: 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 --- editor/scene_tree_dock.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 816156ef00..21ac27dc4e 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -1459,6 +1459,8 @@ void SceneTreeDock::_create() { for (List::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)); } -- cgit v1.2.3