Normand Briere
2019-07-23 cf7cfa1c792eebba606a48aa648893f6e4873263
Object3D.java
....@@ -5775,12 +5775,23 @@
57755775 }
57765776 }
57775777
5778
- void EmbedTextures()
5778
+ void EmbedTextures(boolean embed)
57795779 {
57805780 if (blockloop)
57815781 return;
57825782
5783
- CameraPane.EmbedTextures(texture);
5783
+ //if (GetTextures() != null)
5784
+ if (embed)
5785
+ CameraPane.EmbedTextures(GetTextures());
5786
+ else
5787
+ {
5788
+ GetTextures().pigmentdata = null;
5789
+ GetTextures().bumpdata = null;
5790
+ GetTextures().pw = 0;
5791
+ GetTextures().ph = 0;
5792
+ GetTextures().bw = 0;
5793
+ GetTextures().bh = 0;
5794
+ }
57845795
57855796 int nb = Size();
57865797 for (int i = 0; i < nb; i++)
....@@ -5791,7 +5802,7 @@
57915802 continue;
57925803
57935804 blockloop = true;
5794
- child.EmbedTextures();
5805
+ child.EmbedTextures(embed);
57955806 blockloop = false;
57965807 }
57975808 }