Author: DerekRhodes Date: 2008-03-08 13:55:42 -0500 (Sat, 08 Mar 2008) New Revision: 1102
Modified: trunk/pysoy/src/_datatypes/FaceList.pxi trunk/pysoy/src/atoms/Vertex.pxi Log: small indentation fixes Modified: trunk/pysoy/src/_datatypes/FaceList.pxi =================================================================== --- trunk/pysoy/src/_datatypes/FaceList.pxi 2008-03-08 18:17:04 UTC (rev 1101) +++ trunk/pysoy/src/_datatypes/FaceList.pxi 2008-03-08 18:55:42 UTC (rev 1102) @@ -79,10 +79,10 @@ gl.GL_UNSIGNED_SHORT, (<Face *> 0) + _offset) cdef void _renderArrayBumpPass (self, int a, int b): - pass + pass cdef void _renderBufferBumpPass (self, int a , int b): - pass + pass cdef void _createBuffer(self) : Modified: trunk/pysoy/src/atoms/Vertex.pxi =================================================================== --- trunk/pysoy/src/atoms/Vertex.pxi 2008-03-08 18:17:04 UTC (rev 1101) +++ trunk/pysoy/src/atoms/Vertex.pxi 2008-03-08 18:55:42 UTC (rev 1102) @@ -142,24 +142,24 @@ py.PyThread_release_lock(self._mutex) property tangent: - def __get__(self): - cdef object t - py.PyThread_acquire_lock(self._mutex, 1) - t = (self._list._array[self._index].tan_x, - self._list._array[self._index].tan_y, - self._list._array[self._index].tan_z) - py.PyThread_release_lock(self._mutex) - return t - def __set__(self,value): - if type(value)!=tuple and type(value)!=list : - raise TypeError('Must provide a tuple or list') - if len(value)!=3 : - raise TypeError('Must provide (x,y,z)') + def __get__(self): + cdef object t + py.PyThread_acquire_lock(self._mutex, 1) + t = (self._list._array[self._index].tan_x, + self._list._array[self._index].tan_y, + self._list._array[self._index].tan_z) + py.PyThread_release_lock(self._mutex) + return t + def __set__(self,value): + if type(value)!=tuple and type(value)!=list : + raise TypeError('Must provide a tuple or list') + if len(value)!=3 : + raise TypeError('Must provide (x,y,z)') - py.PyThread_acquire_lock(self._mutex, 1) - self._list._array[self._index].tan_x = value[0] - self._list._array[self._index].tan_y = value[1] - self._list._array[self._index].tan_z = value[2] - self._list._flagUpdated(self._index) - py.PyThread_release_lock(self._mutex) + py.PyThread_acquire_lock(self._mutex, 1) + self._list._array[self._index].tan_x = value[0] + self._list._array[self._index].tan_y = value[1] + self._list._array[self._index].tan_z = value[2] + self._list._flagUpdated(self._index) + py.PyThread_release_lock(self._mutex) _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn