You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix wrong ColorPicker shape with GradientEdit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user