diff options
author | volzhs <volzhs@gmail.com> | 2017-12-11 15:53:30 +0900 |
---|---|---|
committer | volzhs <volzhs@gmail.com> | 2017-12-11 15:53:30 +0900 |
commit | 1273f106469a878c79d78fff5ef1d957776e4e3b (patch) | |
tree | 97570d851702d33aeaf97ed911907d3c7eeda60e /scene | |
parent | c05c66ee01bcf285d5b4d952fb24c15af281803d (diff) |
Fix align=center info is not saved with CheckBox & CheckButton
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/button.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index 1fa03f81f4..9b728cb0e8 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -253,7 +253,7 @@ void Button::_bind_methods() { ADD_PROPERTYNZ(PropertyInfo(Variant::OBJECT, "icon", PROPERTY_HINT_RESOURCE_TYPE, "Texture"), "set_button_icon", "get_button_icon"); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "flat"), "set_flat", "is_flat"); ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL, "clip_text"), "set_clip_text", "get_clip_text"); - ADD_PROPERTYNO(PropertyInfo(Variant::INT, "align", PROPERTY_HINT_ENUM, "Left,Center,Right"), "set_text_align", "get_text_align"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "align", PROPERTY_HINT_ENUM, "Left,Center,Right"), "set_text_align", "get_text_align"); } Button::Button(const String &p_text) { |