Material: Material editor enhancements

Removes localization from the material card dictionary.

Fixes #12935

The previous card implementation transferred strings directly to the
card dictionary without interpretation. The new material system parses
the file data, producing a dictionary for compatibility. The new
dictionaries localized the strings which is incorrect. This PR
removes that localization.
This commit is contained in:
David Carter
2024-03-13 17:42:53 -04:00
committed by Chris Hennes
parent c5505bc438
commit 48bfd227ac
4 changed files with 39 additions and 12 deletions

View File

@@ -303,7 +303,7 @@ Py::Dict MaterialPy::getProperties() const
auto materialProperty = it->second;
if (!materialProperty->isNull()) {
auto value = materialProperty->getString();
auto value = materialProperty->getDictionaryString();
dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
}
}
@@ -314,7 +314,7 @@ Py::Dict MaterialPy::getProperties() const
auto materialProperty = it->second;
if (!materialProperty->isNull()) {
auto value = materialProperty->getString();
auto value = materialProperty->getDictionaryString();
dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
}
}
@@ -332,7 +332,7 @@ Py::Dict MaterialPy::getPhysicalProperties() const
auto materialProperty = it->second;
if (!materialProperty->isNull()) {
auto value = materialProperty->getString();
auto value = materialProperty->getDictionaryString();
dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
}
}
@@ -350,7 +350,7 @@ Py::Dict MaterialPy::getAppearanceProperties() const
auto materialProperty = it->second;
if (!materialProperty->isNull()) {
auto value = materialProperty->getString();
auto value = materialProperty->getDictionaryString();
dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString()));
}
}