.. | .. |
---|
5775 | 5775 | } |
---|
5776 | 5776 | } |
---|
5777 | 5777 | |
---|
| 5778 | + void EmbedTextures(boolean embed) |
---|
| 5779 | + { |
---|
| 5780 | + if (blockloop) |
---|
| 5781 | + return; |
---|
| 5782 | + |
---|
| 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 | + } |
---|
| 5795 | + |
---|
| 5796 | + int nb = Size(); |
---|
| 5797 | + for (int i = 0; i < nb; i++) |
---|
| 5798 | + { |
---|
| 5799 | + Object3D child = (Object3D) get(i); |
---|
| 5800 | + |
---|
| 5801 | + if (child == null) |
---|
| 5802 | + continue; |
---|
| 5803 | + |
---|
| 5804 | + blockloop = true; |
---|
| 5805 | + child.EmbedTextures(embed); |
---|
| 5806 | + blockloop = false; |
---|
| 5807 | + } |
---|
| 5808 | + } |
---|
| 5809 | + |
---|
5778 | 5810 | void draw(iCameraPane display, Object3D /*Composite*/ root, boolean selected, boolean blocked) |
---|
5779 | 5811 | { |
---|
5780 | 5812 | Draw(display, root, selected, blocked); |
---|