diff --git a/dist/xeokit-sdk.cjs.js b/dist/xeokit-sdk.cjs.js index 56ad61bed0..ae39169e55 100644 --- a/dist/xeokit-sdk.cjs.js +++ b/dist/xeokit-sdk.cjs.js @@ -204538,7 +204538,7 @@ class WebIFCLoaderPlugin extends Plugin { } _parseSpatialChildren(ctx, ifcElement, parentMetaObjectId) { - const metaObjectType = ifcElement.__proto__.constructor.name; + const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type); if (ctx.includeTypes && (!ctx.includeTypes[metaObjectType])) { return; } @@ -204553,7 +204553,7 @@ class WebIFCLoaderPlugin extends Plugin { _createMetaObject(ctx, ifcElement, parentMetaObjectId) { const id = ifcElement.GlobalId.value; - const metaObjectType = ifcElement.__proto__.constructor.name; + const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type); const metaObjectName = (ifcElement.Name && ifcElement.Name.value !== "") ? ifcElement.Name.value : metaObjectType; const metaObject = { id: id, diff --git a/dist/xeokit-sdk.es.js b/dist/xeokit-sdk.es.js index 2c33feb4bd..7c3722a2ed 100644 --- a/dist/xeokit-sdk.es.js +++ b/dist/xeokit-sdk.es.js @@ -204534,7 +204534,7 @@ class WebIFCLoaderPlugin extends Plugin { } _parseSpatialChildren(ctx, ifcElement, parentMetaObjectId) { - const metaObjectType = ifcElement.__proto__.constructor.name; + const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type); if (ctx.includeTypes && (!ctx.includeTypes[metaObjectType])) { return; } @@ -204549,7 +204549,7 @@ class WebIFCLoaderPlugin extends Plugin { _createMetaObject(ctx, ifcElement, parentMetaObjectId) { const id = ifcElement.GlobalId.value; - const metaObjectType = ifcElement.__proto__.constructor.name; + const metaObjectType = this._ifcAPI.GetNameFromTypeCode(ifcElement.type); const metaObjectName = (ifcElement.Name && ifcElement.Name.value !== "") ? ifcElement.Name.value : metaObjectType; const metaObject = { id: id, diff --git a/dist/xeokit-sdk.es5.js b/dist/xeokit-sdk.es5.js index f463e18866..7eaf1e109f 100644 --- a/dist/xeokit-sdk.es5.js +++ b/dist/xeokit-sdk.es5.js @@ -28849,7 +28849,7 @@ var isBase64=!!dataUriRegexResult[2];var data=dataUriRegexResult[3];data=window. */},{key:"load",value:function load(){var _this2470=this;var params=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(params.id&&this.viewer.scene.components[params.id]){this.error("Component with this ID already exists in viewer: "+params.id+" - will autogenerate this ID");delete params.id;}var sceneModel=new SceneModel(this.viewer.scene,utils.apply(params,{isModel:true}));if(!params.src&&!params.ifc){this.error("load() param expected: src or IFC");return sceneModel;// Return new empty model }var options={autoNormals:true};if(params.loadMetadata!==false){var includeTypes=params.includeTypes||this._includeTypes;var excludeTypes=params.excludeTypes||this._excludeTypes;var objectDefaults=params.objectDefaults||this._objectDefaults;if(includeTypes){options.includeTypesMap={};for(var _i586=0,len=includeTypes.length;_i5860){var propertySetType="Default";var propertySetName=relatingPropertyDefinition.Name.value;var properties=[];for(var _i592=0,len=props.length;_i5920){var propertySetType="Default";var propertySetName=relatingPropertyDefinition.Name.value;var properties=[];for(var _i592=0,len=props.length;_i592