Fix some DeepScan analysis errors.

This commit is contained in:
kovacsv 2022-01-17 21:01:51 +01:00
parent aef3994e5c
commit 7146bc0e2a
3 changed files with 2 additions and 9 deletions

View File

@ -35,9 +35,6 @@ export class TextureMap
IsEqual (rhs)
{
if (this.name !== rhs.name) {
return false;
}
if (this.name !== rhs.name) {
return false;
}
@ -259,9 +256,6 @@ export class PhysicalMaterial extends FaceMaterial
export function TextureIsEqual (a, b)
{
if (a.name !== b.name) {
return false;
}
if (a.name !== b.name) {
return false;
}

View File

@ -514,9 +514,8 @@ export class Navigation
OnMouseWheel (ev)
{
ev.preventDefault ();
let params = ev || window.event;
params.preventDefault ();
let delta = -params.deltaY / 40;
let ratio = 0.1;

View File

@ -86,7 +86,7 @@ export class UpVector
if (this.direction === Direction.X) {
newCamera.up = new Coord3D (1.0, 0.0, 0.0);
newCamera.eye = newEye;
} if (this.direction === Direction.Y) {
} else if (this.direction === Direction.Y) {
newCamera.up = new Coord3D (0.0, 1.0, 0.0);
newCamera.eye = newEye;
} else if (this.direction === Direction.Z) {