assignExtrasToUserData top-level property
@param {Object3D|Material|BufferGeometry} object @param {GLTF.definition} gltfDef
Implementation
Function assignExtrasToUserData = (object, gltfDef) {
if (gltfDef["extras"] != null) {
if (gltfDef["extras"] is Map) {
object.userData.addAll(gltfDef["extras"]);
} else {
print(
'THREE.GLTFLoader: Ignoring primitive type .extras, ${gltfDef["extras"]}');
}
}
};