From d32f24f147068e6cbecb31c7f98047f68bc8b58a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 21 Jul 2019 19:03:28 -0400 Subject: [PATCH] Embed texture. --- Object3D.java | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/Object3D.java b/Object3D.java index 0fe5ff5..2ccc4c6 100644 --- a/Object3D.java +++ b/Object3D.java @@ -5775,6 +5775,27 @@ } } + void EmbedTextures() + { + if (blockloop) + return; + + CameraPane.EmbedTextures(texture); + + int nb = Size(); + for (int i = 0; i < nb; i++) + { + Object3D child = (Object3D) get(i); + + if (child == null) + continue; + + blockloop = true; + child.EmbedTextures(); + blockloop = false; + } + } + void draw(iCameraPane display, Object3D /*Composite*/ root, boolean selected, boolean blocked) { Draw(display, root, selected, blocked); -- Gitblit v1.6.2