mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 02:36:58 +02:00
fix grab billboarding bug
This commit is contained in:
parent
98f9dc0ca4
commit
abef5c4d61
1 changed files with 3 additions and 3 deletions
|
@ -1843,7 +1843,7 @@ void EntityItemProperties::copyFromScriptValue(const QScriptValue& object, bool
|
|||
// Handle conversions from old 'textures' property to "imageURL"
|
||||
{
|
||||
QScriptValue V = object.property("textures");
|
||||
if (V.isValid()) {
|
||||
if (_type == EntityTypes::Image && V.isValid() && !object.property("imageURL").isValid()) {
|
||||
bool isValid = false;
|
||||
QString textures = QString_convertFromScriptValue(V, isValid);
|
||||
if (isValid) {
|
||||
|
@ -1862,7 +1862,7 @@ void EntityItemProperties::copyFromScriptValue(const QScriptValue& object, bool
|
|||
// Handle old "faceCamera" and "isFacingAvatar" props
|
||||
{
|
||||
QScriptValue P = object.property("faceCamera");
|
||||
if (P.isValid()) {
|
||||
if (P.isValid() && !object.property("billboardMode").isValid()) {
|
||||
bool newValue = P.toVariant().toBool();
|
||||
bool oldValue = getBillboardMode() == BillboardMode::YAW;
|
||||
if (_defaultSettings || newValue != oldValue) {
|
||||
|
@ -1872,7 +1872,7 @@ void EntityItemProperties::copyFromScriptValue(const QScriptValue& object, bool
|
|||
}
|
||||
{
|
||||
QScriptValue P = object.property("isFacingAvatar");
|
||||
if (P.isValid()) {
|
||||
if (P.isValid() && !object.property("billboardMode").isValid() && !object.property("faceCamera").isValid()) {
|
||||
bool newValue = P.toVariant().toBool();
|
||||
bool oldValue = getBillboardMode() == BillboardMode::FULL;
|
||||
if (_defaultSettings || newValue != oldValue) {
|
||||
|
|
Loading…
Reference in a new issue