From f491b43edde841fa0c264d617284ac5f155badd8 Mon Sep 17 00:00:00 2001 From: jmb462 Date: Mon, 20 Dec 2021 15:34:29 +0100 Subject: Fix wrong ColorPicker shape with GradientEdit --- editor/plugins/gradient_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'editor/plugins/gradient_editor_plugin.cpp') diff --git a/editor/plugins/gradient_editor_plugin.cpp b/editor/plugins/gradient_editor_plugin.cpp index da050abc02..6f2d950190 100644 --- a/editor/plugins/gradient_editor_plugin.cpp +++ b/editor/plugins/gradient_editor_plugin.cpp @@ -118,6 +118,9 @@ void EditorInspectorPluginGradient::parse_begin(Object *p_object) { editor->set_gradient(g); add_custom_control(editor); + int picker_shape = EDITOR_GET("interface/inspector/default_color_picker_shape"); + editor->get_picker()->set_picker_shape((ColorPicker::PickerShapeType)picker_shape); + reverse_btn = memnew(GradientReverseButton); gradient_tools_hbox = memnew(HBoxContainer); -- cgit v1.2.3