File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -236,15 +236,15 @@ void Window::_get_property_list(List<PropertyInfo> *p_list) const {
236236}
237237
238238void Window::_validate_property (PropertyInfo &p_property) const {
239- if (p_property.name == " position" && initial_position != WINDOW_INITIAL_POSITION_ABSOLUTE ) {
240- p_property. usage = PROPERTY_USAGE_NONE;
241- }
242-
243- if (p_property.name == " current_screen" && initial_position != WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN ) {
244- p_property. usage = PROPERTY_USAGE_NONE;
245- }
246-
247- if (p_property.name == " theme_type_variation" ) {
239+ if (p_property.name == " position" ) {
240+ if (initial_position != WINDOW_INITIAL_POSITION_ABSOLUTE) {
241+ p_property. usage = PROPERTY_USAGE_NONE;
242+ }
243+ } else if (p_property.name == " current_screen" ) {
244+ if (initial_position != WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN) {
245+ p_property. usage = PROPERTY_USAGE_NONE;
246+ }
247+ } else if (p_property.name == " theme_type_variation" ) {
248248 List<StringName> names;
249249
250250 // Only the default theme and the project theme are used for the list of options.
You can’t perform that action at this time.
0 commit comments