From 97e77688bb97e5930525ba14c884c3a9e6fc73d5 Mon Sep 17 00:00:00 2001 From: MrCdK Date: Sun, 25 Feb 2018 01:41:26 +0100 Subject: Now the inspector will show the custom resources added via plugin --- editor/create_dialog.cpp | 21 +-------------------- editor/editor_data.cpp | 25 +++++++++++++++++++++++++ editor/editor_data.h | 1 + editor/property_editor.cpp | 46 +++++++++++++++++++++++++++++++++++++++++++--- 4 files changed, 70 insertions(+), 23 deletions(-) (limited to 'editor') diff --git a/editor/create_dialog.cpp b/editor/create_dialog.cpp index fdc58e6292..62a3a4d3d1 100644 --- a/editor/create_dialog.cpp +++ b/editor/create_dialog.cpp @@ -433,26 +433,7 @@ Object *CreateDialog::instance_selected() { custom = md; if (custom != String()) { - if (EditorNode::get_editor_data().get_custom_types().has(custom)) { - - for (int i = 0; i < EditorNode::get_editor_data().get_custom_types()[custom].size(); i++) { - if (EditorNode::get_editor_data().get_custom_types()[custom][i].name == selected->get_text(0)) { - Ref icon = EditorNode::get_editor_data().get_custom_types()[custom][i].icon; - Ref