Revert "bug(engine) Handle null/undefined in attribute debug (#1921)" (#1924)

This commit is contained in:
felixpalmer 2024-01-18 11:01:27 +01:00 committed by GitHub
parent 49aa22851d
commit a382dcd888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -611,13 +611,6 @@ export class Model {
// TODO - fix typing of luma data types
_getBufferOrConstantValues(attribute: Buffer | TypedArray, dataType: any): string {
if (attribute === null) {
log.warn('Missing attribute')();
return 'null';
} else if (attribute === undefined) {
log.warn('Missing attribute')();
return 'undefined';
}
const TypedArrayConstructor = getTypedArrayFromDataType(dataType);
const typedArray =
attribute instanceof Buffer ? new TypedArrayConstructor(attribute.debugData) : attribute;