mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
chore: remove exception when a shader constant uses a non-existant property
This commit is contained in:
parent
83cd34623d
commit
c3d969ecf8
@ -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 ();
|
||||
}
|
||||
} else {
|
||||
val = it.value ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user