react-planner icon indicating copy to clipboard operation
react-planner copied to clipboard

3D objects loosing texture after switching from 2D to 3D (2 times)

Open aw-devel opened this issue 7 years ago • 2 comments

3D objects from catalog are loosing texture when you switch from 2D to 3D mode 2 times.

Reproduction:

Add e.g Kitchen from catalog to 2D plan Switch to 3D (everything is ok) Switch to 2D Switch to 3D ( Kitchen is 'grey' untextured)

Following scenario you can reproduce on any Catalog element with textures

aw-devel avatar May 06 '18 21:05 aw-devel

Thanks for reporting, we are working on it

alessiocarrafa avatar Jun 11 '18 10:06 alessiocarrafa

it's because of "three-memory-cleaner.js" of the function disposeMesh();

when disposing the mesh it removes the texture from memory so in your case you have 2 options
opt1: remove this lines : if(cached3DWindow) { return Promise.resolve(onLoadItem(cached3DWindow.clone())); }

opt2 : in three-memory-cleaner.js remove the lines that dispose the material in disposeMesh(mesh) function

nasriachref avatar Sep 24 '18 14:09 nasriachref