Browse Source

Removed ancient code for set_edited that was doing nothing.

Juan Linietsky 6 years ago
parent
commit
f4ac678d58
1 changed files with 0 additions and 4 deletions
  1. 0 4
      editor/editor_inspector.cpp

+ 0 - 4
editor/editor_inspector.cpp

@@ -1941,10 +1941,6 @@ void EditorInspector::_edit_set(const String &p_name, const Variant &p_value, bo
 
 		Resource *r = Object::cast_to<Resource>(object);
 		if (r) {
-			if (!r->is_edited() && String(p_name) != "resource/edited") {
-				undo_redo->add_do_method(r, "set_edited", true);
-				undo_redo->add_undo_method(r, "set_edited", false);
-			}
 
 			if (String(p_name) == "resource_local_to_scene") {
 				bool prev = object->get(p_name);