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:
committed by
Chris Hennes
parent
c5505bc438
commit
48bfd227ac
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user