Fix some DeepScan analysis errors.

This commit is contained in:
kovacsv 2022-01-17 21:07:00 +01:00
parent 7c2b5ec4d0
commit ce9176a58e
2 changed files with 0 additions and 10 deletions

View File

@ -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);
}

View File

@ -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) {