diff options
Diffstat (limited to 'editor/property_editor.cpp')
| -rw-r--r-- | editor/property_editor.cpp | 9 | 
1 files changed, 1 insertions, 8 deletions
diff --git a/editor/property_editor.cpp b/editor/property_editor.cpp index 0693294316..86b6e4c6a5 100644 --- a/editor/property_editor.cpp +++ b/editor/property_editor.cpp @@ -43,7 +43,6 @@  #include "editor/array_property_edit.h"  #include "editor/create_dialog.h"  #include "editor/dictionary_property_edit.h" -#include "editor/editor_export.h"  #include "editor/editor_file_dialog.h"  #include "editor/editor_file_system.h"  #include "editor/editor_help.h" @@ -828,13 +827,7 @@ bool CustomPropertyEditor::edit(Object *p_owner, const String &p_name, Variant::  				value_vbox->add_child(color_picker);  				color_picker->hide();  				color_picker->connect("color_changed", callable_mp(this, &CustomPropertyEditor::_color_changed)); - -				// get default color picker mode from editor settings -				int default_color_mode = EDITOR_GET("interface/inspector/default_color_picker_mode"); -				color_picker->set_color_mode((ColorPicker::ColorModeType)default_color_mode); - -				int picker_shape = EDITOR_GET("interface/inspector/default_color_picker_shape"); -				color_picker->set_picker_shape((ColorPicker::PickerShapeType)picker_shape); +				color_picker->connect("show", callable_mp(EditorNode::get_singleton(), &EditorNode::setup_color_picker), varray(color_picker));  			}  			color_picker->show();  |