Fix some DeepScan analysis errors.
This commit is contained in:
parent
7c2b5ec4d0
commit
ce9176a58e
@ -305,10 +305,6 @@ export class Importer3ds extends ImporterBase
|
||||
this.ReadChunks (reader, endByte, (chunkId, chunkLength) => {
|
||||
if (chunkId === CHUNK3DS.OBJ_TRIMESH) {
|
||||
this.ReadMeshChunk (reader, chunkLength, objectName);
|
||||
} else if (chunkId === CHUNK3DS.OBJ_LIGHT) {
|
||||
this.SkipChunk (reader, chunkLength);
|
||||
} else if (chunkId === CHUNK3DS.OBJ_CAMERA) {
|
||||
this.SkipChunk (reader, chunkLength);
|
||||
} else {
|
||||
this.SkipChunk (reader, chunkLength);
|
||||
}
|
||||
|
||||
@ -43,16 +43,10 @@ export class SidebarDetailsPanel extends SidebarPanel
|
||||
return null;
|
||||
}
|
||||
const volume = CalculateVolume (object3D);
|
||||
if (volume === null) {
|
||||
return null;
|
||||
}
|
||||
return new Property (PropertyType.Number, null, volume);
|
||||
});
|
||||
this.AddCalculatedProperty (table, 'Surface', () => {
|
||||
const surfaceArea = CalculateSurfaceArea (object3D);
|
||||
if (surfaceArea === null) {
|
||||
return null;
|
||||
}
|
||||
return new Property (PropertyType.Number, null, surfaceArea);
|
||||
});
|
||||
if (object3D.PropertyGroupCount () > 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user