chore: remove exception when a shader constant uses a non-existant property

This commit is contained in:
Almamu 2025-04-19 17:23:56 +02:00
parent 83cd34623d
commit c3d969ecf8

View File

@ -112,11 +112,12 @@ std::map<std::string, const Core::Objects::Effects::Constants::CShaderConstant*>
const auto& properties = project.getProperties ();
const auto property = properties.find (*user);
if (property == properties.end ()) {
sLog.exception ("Shader constant pointing to non-existant project property: ", user->get <std::string> ());
if (property != properties.end ()) {
constant = new Effects::Constants::CShaderConstantProperty (property->second);
} else {
sLog.error ("Shader constant pointing to non-existant project property: ", user->get <std::string> ());
val = it.value ();
}
constant = new Effects::Constants::CShaderConstantProperty (property->second);
} else {
val = it.value ();
}