Revision: 24064
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24064
Author:   khughes
Date:     2009-10-23 02:44:18 +0200 (Fri, 23 Oct 2009)

Log Message:
-----------
Python API
----------
Incorrect row and column values were passed to newMatrixObject() by
Matrix_new() when the argument to Matrix() was a matrix.

Modified Paths:
--------------
    trunk/blender/source/blender/python/generic/matrix.c

Modified: trunk/blender/source/blender/python/generic/matrix.c
===================================================================
--- trunk/blender/source/blender/python/generic/matrix.c        2009-10-22 
23:23:09 UTC (rev 24063)
+++ trunk/blender/source/blender/python/generic/matrix.c        2009-10-23 
00:44:18 UTC (rev 24064)
@@ -165,6 +165,8 @@
                                return NULL;
 
                        memcpy(matrix, mat->contigPtr, sizeof(float) * 
mat->rowSize * mat->colSize);
+                       argSize = mat->rowSize;
+                       seqSize = mat->colSize;
                }
        }else{ //2-4 arguments (all seqs? all same size?)
                for(i =0; i < argSize; i++){


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to