Browse Source

Capitalize properties in the remote inspector

This makes property casing consistent with the editor.

If property capitalization is disabled in the Editor Settings,
the remote inspector will also disable capitalization.

(cherry picked from commit 854f3285179f34d93287cef514affc842834ea32)
Hugo Locurcio 6 years ago
parent
commit
2cd626185c
1 changed files with 0 additions and 6 deletions
  1. 0 6
      editor/editor_node.cpp

+ 0 - 6
editor/editor_node.cpp

@@ -1985,7 +1985,6 @@ void EditorNode::_edit_current() {
 
 
 	Object *prev_inspected_object = get_inspector()->get_edited_object();
 	Object *prev_inspected_object = get_inspector()->get_edited_object();
 
 
-	bool capitalize = bool(EDITOR_GET("interface/inspector/capitalize_properties"));
 	bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding"));
 	bool disable_folding = bool(EDITOR_GET("interface/inspector/disable_folding"));
 	bool is_resource = current_obj->is_class("Resource");
 	bool is_resource = current_obj->is_class("Resource");
 	bool is_node = current_obj->is_class("Node");
 	bool is_node = current_obj->is_class("Node");
@@ -2043,7 +2042,6 @@ void EditorNode::_edit_current() {
 
 
 		if (current_obj->is_class("ScriptEditorDebuggerInspectedObject")) {
 		if (current_obj->is_class("ScriptEditorDebuggerInspectedObject")) {
 			editable_warning = TTR("This is a remote object, so changes to it won't be kept.\nPlease read the documentation relevant to debugging to better understand this workflow.");
 			editable_warning = TTR("This is a remote object, so changes to it won't be kept.\nPlease read the documentation relevant to debugging to better understand this workflow.");
-			capitalize = false;
 			disable_folding = true;
 			disable_folding = true;
 		} else if (current_obj->is_class("MultiNodeEdit")) {
 		} else if (current_obj->is_class("MultiNodeEdit")) {
 			Node *scene = get_edited_scene();
 			Node *scene = get_edited_scene();
@@ -2080,10 +2078,6 @@ void EditorNode::_edit_current() {
 
 
 	inspector_dock->set_warning(editable_warning);
 	inspector_dock->set_warning(editable_warning);
 
 
-	if (get_inspector()->is_capitalize_paths_enabled() != capitalize) {
-		get_inspector()->set_enable_capitalize_paths(capitalize);
-	}
-
 	if (get_inspector()->is_using_folding() == disable_folding) {
 	if (get_inspector()->is_using_folding() == disable_folding) {
 		get_inspector()->set_use_folding(!disable_folding);
 		get_inspector()->set_use_folding(!disable_folding);
 	}
 	}