mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 06:30:01 +02:00
Improve style/compatibility for default position/direction when creating parabola pick
This commit is contained in:
parent
12a755310f
commit
ed987ffe9e
1 changed files with 2 additions and 2 deletions
|
@ -207,8 +207,8 @@ unsigned int PickScriptingInterface::createParabolaPick(const QVariant& properti
|
||||||
scaleWithParent = propMap["scaleWithAvatar"].toBool();
|
scaleWithParent = propMap["scaleWithAvatar"].toBool();
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec3 position = glm::vec3();
|
glm::vec3 position = Vectors::ZERO;
|
||||||
glm::vec3 direction = -Vectors::FRONT;
|
glm::vec3 direction = propMap["joint"].isValid() ? Vectors::UP : -Vectors::FRONT;
|
||||||
if (propMap["position"].isValid()) {
|
if (propMap["position"].isValid()) {
|
||||||
position = vec3FromVariant(propMap["position"]);
|
position = vec3FromVariant(propMap["position"]);
|
||||||
} else if (propMap["posOffset"].isValid()) {
|
} else if (propMap["posOffset"].isValid()) {
|
||||||
|
|
Loading…
Reference in a new issue