Author: ArcRiley
Date: 2008-05-18 14:20:29 -0400 (Sun, 18 May 2008)
New Revision: 1267

Modified:
   trunk/pysoy/include/soy.scenes.pxd
   trunk/pysoy/src/scenes/Scene.pym
Log:
'''Quick Fixes''' :
  * eliminated Scene._updateTime
  * updated Vert struct 


Modified: trunk/pysoy/include/soy.scenes.pxd
===================================================================
--- trunk/pysoy/include/soy.scenes.pxd  2008-05-18 18:16:40 UTC (rev 1266)
+++ trunk/pysoy/include/soy.scenes.pxd  2008-05-18 18:20:29 UTC (rev 1267)
@@ -41,9 +41,9 @@
     float tx
     float ty
     float tz
-    float tan_x
-    float tan_y
-    float tan_z
+    float ux
+    float uy
+    float uz
 
 cdef void _prerunField(void*, void*, void*)
 cdef void _runField(void*, void*, void*)
@@ -70,7 +70,6 @@
   # _coreloop methods
   cdef void                       _render         ( self )
   cdef int                        _steps          ( self )                nogil
-  cdef void                       _updateTime     ( self )                nogil
   cdef void                       _callback       ( self, 
                                                     ode.dGeomID,
                                                     ode.dGeomID )         nogil

Modified: trunk/pysoy/src/scenes/Scene.pym
===================================================================
--- trunk/pysoy/src/scenes/Scene.pym    2008-05-18 18:16:40 UTC (rev 1266)
+++ trunk/pysoy/src/scenes/Scene.pym    2008-05-18 18:20:29 UTC (rev 1267)
@@ -85,7 +85,7 @@
   
   cdef int _loop(self) nogil :
     cdef int _i, _steps
-    self._updateTime()
+    self._time = _time()
     self._callFields._empty()
     self._giveFields._empty()
     #
@@ -109,7 +109,7 @@
     self._stepLock()
     _steps = self._steps()
     for _i from 0 <= _i < _steps :
-      self._updateTime()
+      self._time = _time()
       self._giveFields._foreach(_prerunField, NULL)
       self._callFields._empty()
       ode.dSpaceCollide(self._spaceID, <void*> self,
@@ -153,10 +153,6 @@
     gl.glDisable(gl.GL_DEPTH_TEST)
 
 
-  cdef void _updateTime(self) nogil :
-    self._time = _time()
-
-
   cdef int _steps(self) nogil :
     cdef int     _step
     cdef double  _lapsTime

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to