mirror of
https://github.com/visgl/luma.gl.git
synced 2026-02-01 14:33:49 +00:00
This commit is contained in:
parent
49aa22851d
commit
a382dcd888
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user