.. | .. |
---|
5775 | 5775 | } |
---|
5776 | 5776 | } |
---|
5777 | 5777 | |
---|
5778 | | - void EmbedTextures() |
---|
| 5778 | + void EmbedTextures(boolean embed) |
---|
5779 | 5779 | { |
---|
5780 | 5780 | if (blockloop) |
---|
5781 | 5781 | return; |
---|
5782 | 5782 | |
---|
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 | + } |
---|
5784 | 5795 | |
---|
5785 | 5796 | int nb = Size(); |
---|
5786 | 5797 | for (int i = 0; i < nb; i++) |
---|
.. | .. |
---|
5791 | 5802 | continue; |
---|
5792 | 5803 | |
---|
5793 | 5804 | blockloop = true; |
---|
5794 | | - child.EmbedTextures(); |
---|
| 5805 | + child.EmbedTextures(embed); |
---|
5795 | 5806 | blockloop = false; |
---|
5796 | 5807 | } |
---|
5797 | 5808 | } |
---|