mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
edit.js fix
This commit is contained in:
parent
1b6a2ff56f
commit
c237072195
1 changed files with 2 additions and 2 deletions
|
@ -1510,7 +1510,7 @@ PropertiesTool = function(opts) {
|
|||
if (entity.properties.rotation !== undefined) {
|
||||
entity.properties.rotation = Quat.safeEulerAngles(entity.properties.rotation);
|
||||
}
|
||||
if (entity.properties.keyLight.direction !== undefined) {
|
||||
if (entity.properties.type === "Zone" && entity.properties.keyLight.direction !== undefined) {
|
||||
entity.properties.keyLight.direction = Vec3.multiply(RADIANS_TO_DEGREES, Vec3.toPolar(entity.properties.keyLight.direction));
|
||||
entity.properties.keyLight.direction.z = 0.0;
|
||||
}
|
||||
|
@ -1541,7 +1541,7 @@ PropertiesTool = function(opts) {
|
|||
var rotation = data.properties.rotation;
|
||||
data.properties.rotation = Quat.fromPitchYawRollDegrees(rotation.x, rotation.y, rotation.z);
|
||||
}
|
||||
if (data.properties.keyLight.direction !== undefined) {
|
||||
if (entity.properties.type === "Zone" && data.properties.keyLight.direction !== undefined) {
|
||||
data.properties.keyLight.direction = Vec3.fromPolar(
|
||||
data.properties.keyLight.direction.x * DEGREES_TO_RADIANS, data.properties.keyLight.direction.y * DEGREES_TO_RADIANS);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue