[PATCH] Fixed FTB calculation for inside cube mode.

Dennis Kasprzyk onestone at opencompositing.org
Tue Jun 12 08:59:28 PDT 2007


---
 plugins/cube.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/cube.c b/plugins/cube.c
index 5e5eab3..ae3bf31 100644
--- a/plugins/cube.c
+++ b/plugins/cube.c
@@ -973,7 +973,7 @@ cubeCheckFTB (CompScreen              *s,
     ortho[1] = vecA[2] * vecB[0] - vecA[0] * vecB[2];
     ortho[2] = vecA[0] * vecB[1] - vecA[1] * vecB[0];
 
-    if (ortho[2] > 0.0f)
+    if (ortho[2] > 0.0f && pntC[2] > DEFAULT_Z_CAMERA)
     {
 	/* The viewport is reversed, should be painted front to back. */
 	return TRUE;
-- 
1.5.0.5-dirty


--Boundary_(ID_Nqj58tVM3+zjT3js1Mf8TQ)
Content-type: text/x-diff; charset=windows-1252;
 name=0008-Added-a-wrapabble-paintInside-function-to-allow-plug.patch
Content-transfer-encoding: 7BIT
Content-disposition: attachment;
 filename=0008-Added-a-wrapabble-paintInside-function-to-allow-plug.patch



More information about the compiz mailing list