Fix some DeepScan analysis errors.
This commit is contained in:
parent
aef3994e5c
commit
7146bc0e2a
@ -35,9 +35,6 @@ export class TextureMap
|
|||||||
|
|
||||||
IsEqual (rhs)
|
IsEqual (rhs)
|
||||||
{
|
{
|
||||||
if (this.name !== rhs.name) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (this.name !== rhs.name) {
|
if (this.name !== rhs.name) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -259,9 +256,6 @@ export class PhysicalMaterial extends FaceMaterial
|
|||||||
|
|
||||||
export function TextureIsEqual (a, b)
|
export function TextureIsEqual (a, b)
|
||||||
{
|
{
|
||||||
if (a.name !== b.name) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (a.name !== b.name) {
|
if (a.name !== b.name) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -514,9 +514,8 @@ export class Navigation
|
|||||||
|
|
||||||
OnMouseWheel (ev)
|
OnMouseWheel (ev)
|
||||||
{
|
{
|
||||||
ev.preventDefault ();
|
|
||||||
|
|
||||||
let params = ev || window.event;
|
let params = ev || window.event;
|
||||||
|
params.preventDefault ();
|
||||||
|
|
||||||
let delta = -params.deltaY / 40;
|
let delta = -params.deltaY / 40;
|
||||||
let ratio = 0.1;
|
let ratio = 0.1;
|
||||||
|
|||||||
@ -86,7 +86,7 @@ export class UpVector
|
|||||||
if (this.direction === Direction.X) {
|
if (this.direction === Direction.X) {
|
||||||
newCamera.up = new Coord3D (1.0, 0.0, 0.0);
|
newCamera.up = new Coord3D (1.0, 0.0, 0.0);
|
||||||
newCamera.eye = newEye;
|
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.up = new Coord3D (0.0, 1.0, 0.0);
|
||||||
newCamera.eye = newEye;
|
newCamera.eye = newEye;
|
||||||
} else if (this.direction === Direction.Z) {
|
} else if (this.direction === Direction.Z) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user