mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Compile out editor-only logic within validate_property in games
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user