Compile out editor-only logic within validate_property in games
This commit is contained in:
@ -185,6 +185,9 @@ StringName AudioEffectCompressor::get_sidechain() const {
|
||||
}
|
||||
|
||||
void AudioEffectCompressor::_validate_property(PropertyInfo &p_property) const {
|
||||
if (!Engine::get_singleton()->is_editor_hint()) {
|
||||
return;
|
||||
}
|
||||
if (p_property.name == "sidechain") {
|
||||
String buses = "";
|
||||
for (int i = 0; i < AudioServer::get_singleton()->get_bus_count(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user