Viewer fixes (#495)

This commit is contained in:
Cristian Balas
2021-12-13 18:06:09 +02:00
committed by GitHub
parent a55954baba
commit 1f378b9823
7 changed files with 42 additions and 29 deletions
@@ -224,8 +224,12 @@ export default class SceneObjectManager {
let group = new THREE.Group()
wrapper.bufferGeometry.forEach( g => {
if ( wrapper.meta.renderMaterial && !g.meta.renderMaterial ) {
g.meta.renderMaterial = wrapper.meta.renderMaterial
}
let res = this.addObject( g, false )
group.add( res )
if ( res )
group.add( res )
} )
group.applyMatrix4( wrapper.extras.transformMatrix )