mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 14:42:09 +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();
|
||||
}
|
||||
|
||||
glm::vec3 position = glm::vec3();
|
||||
glm::vec3 direction = -Vectors::FRONT;
|
||||
glm::vec3 position = Vectors::ZERO;
|
||||
glm::vec3 direction = propMap["joint"].isValid() ? Vectors::UP : -Vectors::FRONT;
|
||||
if (propMap["position"].isValid()) {
|
||||
position = vec3FromVariant(propMap["position"]);
|
||||
} else if (propMap["posOffset"].isValid()) {
|
||||
|
|
Loading…
Reference in a new issue