Ability to revert any property, not just from inherited scenes or scripts.

This commit is contained in:
Juan Linietsky
2018-10-29 12:25:31 -03:00
parent 35e4783f7b
commit 6cc116d415
5 changed files with 81 additions and 0 deletions

View File

@@ -4733,6 +4733,8 @@ EditorNode::EditorNode() {
ResourceLoader::set_timestamp_on_load(true);
ResourceSaver::set_timestamp_on_save(true);
default_value_cache = memnew( EditorDefaultClassValueCache );
{ //register importers at the beginning, so dialogs are created with the right extensions
Ref<ResourceImporterTexture> import_texture;
import_texture.instance();
@@ -5857,6 +5859,7 @@ EditorNode::~EditorNode() {
memdelete(editor_plugins_force_input_forwarding);
memdelete(file_server);
memdelete(progress_hb);
memdelete(default_value_cache);
EditorSettings::destroy();
}