mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
Merge pull request #56102 from jmb462/fix-wrong-gradientedit-colorpicker-shape
This commit is contained in:
commit
011c0279c5
@ -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);
|
||||
|
@ -432,6 +432,10 @@ Gradient::InterpolationMode GradientEdit::get_interpolation_mode() {
|
||||
return interpolation_mode;
|
||||
}
|
||||
|
||||
ColorPicker *GradientEdit::get_picker() {
|
||||
return picker;
|
||||
}
|
||||
|
||||
void GradientEdit::_bind_methods() {
|
||||
ADD_SIGNAL(MethodInfo("ramp_changed"));
|
||||
}
|
||||
|
@ -75,6 +75,7 @@ public:
|
||||
Vector<Gradient::Point> &get_points();
|
||||
void set_interpolation_mode(Gradient::InterpolationMode p_interp_mode);
|
||||
Gradient::InterpolationMode get_interpolation_mode();
|
||||
ColorPicker *get_picker();
|
||||
|
||||
virtual Size2 get_minimum_size() const override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user