mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 05:23:33 +02:00
fix bug in editModels.js related to newly named rotation property
This commit is contained in:
parent
edf7866c08
commit
d5fa23bcdf
1 changed files with 2 additions and 2 deletions
|
@ -1661,7 +1661,7 @@ function handeMenuEvent(menuItem){
|
|||
array.push({ label: "X:", value: properties.position.x.toFixed(decimals) });
|
||||
array.push({ label: "Y:", value: properties.position.y.toFixed(decimals) });
|
||||
array.push({ label: "Z:", value: properties.position.z.toFixed(decimals) });
|
||||
var angles = Quat.safeEulerAngles(properties.modelRotation);
|
||||
var angles = Quat.safeEulerAngles(properties.rotation);
|
||||
array.push({ label: "Pitch:", value: angles.x.toFixed(decimals) });
|
||||
array.push({ label: "Yaw:", value: angles.y.toFixed(decimals) });
|
||||
array.push({ label: "Roll:", value: angles.z.toFixed(decimals) });
|
||||
|
@ -1699,7 +1699,7 @@ function handeMenuEvent(menuItem){
|
|||
angles.x = array[index++].value;
|
||||
angles.y = array[index++].value;
|
||||
angles.z = array[index++].value;
|
||||
properties.modelRotation = Quat.fromVec3Degrees(angles);
|
||||
properties.rotation = Quat.fromVec3Degrees(angles);
|
||||
properties.radius = array[index++].value / 2;
|
||||
|
||||
properties.velocity.x = array[index++].value;
|
||||
|
|
Loading…
Reference in a new issue