| 437 | } |
| 438 | |
| 439 | Py::Dict MaterialPy::getAppearanceProperties() const |
| 440 | { |
| 441 | Py::Dict dict; |
| 442 | |
| 443 | auto properties = getMaterialPtr()->getAppearanceProperties(); |
| 444 | for (auto& it : properties) { |
| 445 | QString key = it.first; |
| 446 | auto materialProperty = it.second; |
| 447 | |
| 448 | if (!materialProperty->isNull()) { |
| 449 | auto value = materialProperty->getDictionaryString(); |
| 450 | dict.setItem(Py::String(key.toStdString()), Py::String(value.toStdString())); |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | return dict; |
| 455 | } |
| 456 | |
| 457 | Py::Dict MaterialPy::getLegacyProperties() const |
| 458 | { |