mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 16:13:43 +02:00
trying to fix pal colors
This commit is contained in:
parent
3969a0433e
commit
0f33d696d2
1 changed files with 11 additions and 0 deletions
|
@ -358,6 +358,17 @@ EntityItemProperties Overlays::convertOverlayToEntityProperties(QVariantMap& ove
|
|||
return "none";
|
||||
});
|
||||
|
||||
RENAME_PROP_CONVERT(textures, textures, [](const QVariant& v) {
|
||||
auto map = v.toMap();
|
||||
if (!map.isEmpty()) {
|
||||
auto json = QJsonDocument::fromVariant(map);
|
||||
if (!json.isNull()) {
|
||||
return QVariant(QString(json.toJson()));
|
||||
}
|
||||
}
|
||||
return v;
|
||||
});
|
||||
|
||||
if (type == "Shape" || type == "Box" || type == "Sphere" || type == "Gizmo") {
|
||||
RENAME_PROP(solid, isSolid);
|
||||
RENAME_PROP(isFilled, isSolid);
|
||||
|
|
Loading…
Reference in a new issue