summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-12-11 08:02:22 +0100
committerGitHub <noreply@github.com>2017-12-11 08:02:22 +0100
commit2314f0c28122e947a7e788816456e50f92b5e4fb (patch)
treef7dfd0f68d0bca4ecf5fb128b4747fde10aa8992
parent378bb896780acdcf1831c42286a018c5515ed356 (diff)
parent1273f106469a878c79d78fff5ef1d957776e4e3b (diff)
Merge pull request #14543 from volzhs/checkbox-checkbutton-center
Fix align=center info is not saved with CheckBox & CheckButton
-rw-r--r--scene/gui/button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp
index 224610d3f1..47977f0283 100644
--- a/scene/gui/button.cpp
+++ b/scene/gui/button.cpp
@@ -265,7 +265,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) {