diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2018-02-03 23:03:58 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-03 23:03:58 +0700 |
commit | 047cb97ff7e04db17c0ac8af5af11ef46263ae29 (patch) | |
tree | f97aa434001a41ee55353655b7c515ff6547abe4 | |
parent | 4ab522799d833c5118f7335a7849d488f7fb3e35 (diff) | |
parent | 4f9ef96b540adacafbf912379b16ed6519567d0d (diff) |
Merge pull request #16354 from Noshyaar/gradient
Gradient: fix wrong property type
-rw-r--r-- | scene/resources/color_ramp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/color_ramp.cpp b/scene/resources/color_ramp.cpp index 8c09130873..b2f586d02d 100644 --- a/scene/resources/color_ramp.cpp +++ b/scene/resources/color_ramp.cpp @@ -71,8 +71,8 @@ void Gradient::_bind_methods() { ClassDB::bind_method(D_METHOD(COLOR_RAMP_SET_COLORS, "colors"), &Gradient::set_colors); ClassDB::bind_method(D_METHOD(COLOR_RAMP_GET_COLORS), &Gradient::get_colors); - ADD_PROPERTY(PropertyInfo(Variant::REAL, "offsets"), COLOR_RAMP_SET_OFFSETS, COLOR_RAMP_GET_OFFSETS); - ADD_PROPERTY(PropertyInfo(Variant::REAL, "colors"), COLOR_RAMP_SET_COLORS, COLOR_RAMP_GET_COLORS); + ADD_PROPERTY(PropertyInfo(Variant::POOL_REAL_ARRAY, "offsets"), COLOR_RAMP_SET_OFFSETS, COLOR_RAMP_GET_OFFSETS); + ADD_PROPERTY(PropertyInfo(Variant::POOL_COLOR_ARRAY, "colors"), COLOR_RAMP_SET_COLORS, COLOR_RAMP_GET_COLORS); } Vector<float> Gradient::get_offsets() const { |