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:
@@ -201,6 +201,9 @@ AABB ReflectionProbe::get_aabb() const {
|
||||
}
|
||||
|
||||
void ReflectionProbe::_validate_property(PropertyInfo &p_property) const {
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
if (p_property.name == "ambient_color" || p_property.name == "ambient_color_energy") {
|
||||
if (ambient_mode != AMBIENT_COLOR) {
|
||||
p_property.usage = PROPERTY_USAGE_NO_EDITOR;
|
||||
|
||||
Reference in New Issue
Block a user