|
From: <cn...@us...> - 2009-08-18 05:39:58
|
Revision: 488
http://hgengine.svn.sourceforge.net/hgengine/?rev=488&view=rev
Author: cnlohr
Date: 2009-08-18 05:39:50 +0000 (Tue, 18 Aug 2009)
Log Message:
-----------
fix dissappearing textures and assets. The problem is that we're
ignoring if we're actually culled or not, and just letting whatever
happen.
Modified Paths:
--------------
Mercury2/src/MercuryNode.cpp
Modified: Mercury2/src/MercuryNode.cpp
===================================================================
--- Mercury2/src/MercuryNode.cpp 2009-08-18 05:24:42 UTC (rev 487)
+++ Mercury2/src/MercuryNode.cpp 2009-08-18 05:39:50 UTC (rev 488)
@@ -277,7 +277,11 @@
MercuryAsset& a = mai.Asset();
if ( !a.ExcludeFromCull() )
culled = culled && mai.Culled( a.DoCullingTests( mai.GetOcclusionResult(), matrix ) );
- if ( !mai.Culled() ) a.PreRender(this);
+ if ( !mai.Culled() )
+ {
+ culled = false;
+ a.PreRender(this);
+ }
}
SetCulled( culled );
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|