This commit is contained in:
shai
2024-10-06 22:15:05 +03:00
committed by Chris Hennes
parent 29a4f08ed3
commit e926b65b0c

View File

@@ -1087,24 +1087,12 @@ QString Material::getAppearanceValueString(const QString& name) const
bool Material::hasPhysicalProperty(const QString& name) const
{
try {
static_cast<void>(_physical.at(name));
}
catch (std::out_of_range const&) {
return false;
}
return true;
return _physical.find(name) != _physical.end();
}
bool Material::hasAppearanceProperty(const QString& name) const
{
try {
static_cast<void>(_appearance.at(name));
}
catch (std::out_of_range const&) {
return false;
}
return true;
return _appearance.find(name) != _appearance.end();
}
bool Material::hasNonLegacyProperty(const QString& name) const