Compile out editor-only logic within validate_property in games

This commit is contained in:
LuoZhihao
2025-06-12 12:54:19 +08:00
parent d9cd011e2f
commit 8ba4656ea3
69 changed files with 274 additions and 119 deletions

View File

@@ -244,7 +244,7 @@ void Window::_validate_property(PropertyInfo &p_property) const {
if (initial_position != WINDOW_INITIAL_POSITION_CENTER_OTHER_SCREEN) {
p_property.usage = PROPERTY_USAGE_NONE;
}
} else if (p_property.name == "theme_type_variation") {
} else if (Engine::get_singleton()->is_editor_hint() && p_property.name == "theme_type_variation") {
List<StringName> names;
ThemeDB::get_singleton()->get_default_theme()->get_type_variation_list(get_class_name(), &names);