assignExtrasToUserData top-level property

Function assignExtrasToUserData
getter/setter pair

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