mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 17:06:44 +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";
|
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") {
|
if (type == "Shape" || type == "Box" || type == "Sphere" || type == "Gizmo") {
|
||||||
RENAME_PROP(solid, isSolid);
|
RENAME_PROP(solid, isSolid);
|
||||||
RENAME_PROP(isFilled, isSolid);
|
RENAME_PROP(isFilled, isSolid);
|
||||||
|
|
Loading…
Reference in a new issue