|
@@ -460,6 +460,7 @@ Point2 StyleBoxFlat::get_shadow_offset() const {
|
|
|
void StyleBoxFlat::set_anti_aliased(const bool &p_anti_aliased) {
|
|
|
anti_aliased = p_anti_aliased;
|
|
|
emit_changed();
|
|
|
+ notify_property_list_changed();
|
|
|
}
|
|
|
|
|
|
bool StyleBoxFlat::is_anti_aliased() const {
|
|
@@ -781,6 +782,12 @@ float StyleBoxFlat::get_style_margin(Side p_side) const {
|
|
|
return border_width[p_side];
|
|
|
}
|
|
|
|
|
|
+void StyleBoxFlat::_validate_property(PropertyInfo &property) const {
|
|
|
+ if (!anti_aliased && property.name == "anti_aliasing_size") {
|
|
|
+ property.usage = PROPERTY_USAGE_NOEDITOR;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void StyleBoxFlat::_bind_methods() {
|
|
|
ClassDB::bind_method(D_METHOD("set_bg_color", "color"), &StyleBoxFlat::set_bg_color);
|
|
|
ClassDB::bind_method(D_METHOD("get_bg_color"), &StyleBoxFlat::get_bg_color);
|