From a382dcd888cceae4ec556e346a04a36cea2bd539 Mon Sep 17 00:00:00 2001 From: felixpalmer Date: Thu, 18 Jan 2024 11:01:27 +0100 Subject: [PATCH] Revert "bug(engine) Handle null/undefined in attribute debug (#1921)" (#1924) --- modules/engine/src/model/model.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/modules/engine/src/model/model.ts b/modules/engine/src/model/model.ts index ff474f3b4..bf3a7a153 100644 --- a/modules/engine/src/model/model.ts +++ b/modules/engine/src/model/model.ts @@ -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;