1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

GradientTexture now uses a Gradient

- Added gradient property
- Deleted duplicate code
This commit is contained in:
Marc Gilleron
2017-06-24 21:28:22 +02:00
parent 78468906ab
commit 2bb1638b0a
7 changed files with 36 additions and 842 deletions

View File

@@ -91,8 +91,7 @@ void GradientEditorPlugin::_ramp_changed() {
}
}
void GradientEditorPlugin::_undo_redo_gradient(const Vector<float> &offsets,
const Vector<Color> &colors) {
void GradientEditorPlugin::_undo_redo_gradient(const Vector<float> &offsets, const Vector<Color> &colors) {
gradient_ref->set_offsets(offsets);
gradient_ref->set_colors(colors);