From dc7ac86b798f40e1472871391af49a562879eadc Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 3 Jan 2015 17:24:16 -0300 Subject: [PATCH] -Completely removed EmptyControl (but added fallback), closes #1017 --- modules/gridmap/grid_map_editor_plugin.cpp | 4 ++-- scene/register_scene_types.cpp | 4 ++-- tools/editor/animation_editor.cpp | 8 ++++---- tools/editor/animation_editor.h | 4 ++-- tools/editor/editor_help.cpp | 4 ++-- tools/editor/editor_log.cpp | 4 ++-- tools/editor/editor_log.h | 4 ++-- tools/editor/editor_node.cpp | 16 ++++++++-------- tools/editor/plugins/tile_map_editor_plugin.cpp | 4 ++-- tools/editor/progress_dialog.cpp | 6 +++--- tools/editor/project_export.cpp | 4 ++-- tools/editor/project_export.h | 2 +- tools/editor/project_manager.cpp | 6 +++--- 13 files changed, 35 insertions(+), 35 deletions(-) diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp index 140718a91a4..e621a5e061b 100644 --- a/modules/gridmap/grid_map_editor_plugin.cpp +++ b/modules/gridmap/grid_map_editor_plugin.cpp @@ -1192,8 +1192,8 @@ GridMapEditor::GridMapEditor(EditorNode *p_editor) { undo_redo=p_editor->get_undo_redo(); int mw = EDITOR_DEF("grid_map/palette_min_width",230); - EmptyControl *ec = memnew( EmptyControl); - ec->set_minsize(Size2(mw,0)); + Control *ec = memnew( Control); + ec->set_custom_minimum_size(Size2(mw,0)); add_child(ec); diff --git a/scene/register_scene_types.cpp b/scene/register_scene_types.cpp index ee6b481a9fb..cf499791189 100644 --- a/scene/register_scene_types.cpp +++ b/scene/register_scene_types.cpp @@ -39,7 +39,6 @@ #include "scene/main/viewport.h" #include "scene/gui/control.h" #include "scene/gui/texture_progress.h" -#include "scene/gui/empty_control.h" #include "scene/gui/button.h" #include "scene/gui/button_array.h" #include "scene/gui/button_group.h" @@ -272,7 +271,8 @@ void register_scene_types() { OS::get_singleton()->yield(); //may take time to init ObjectTypeDB::register_type(); - ObjectTypeDB::register_type(); +// ObjectTypeDB::register_type(); + ObjectTypeDB::add_compatibility_type("EmptyControl","control"); ObjectTypeDB::register_type