===Python API===

Allow object.setMatrix() to accept 3x3 matrices by extending to a 4x4
internally.  Also check the dimensions of the new matrix and throw an
exception if not a 3x3 or 4x4.
This commit is contained in:
Ken Hughes
2006-02-16 20:09:32 +00:00
parent fe036a0538
commit 7592c09c2b
2 changed files with 23 additions and 7 deletions

View File

@@ -696,9 +696,10 @@ class Object:
def setMatrix(matrix):
"""
Sets the object's matrix and updates it's transformation.
@type matrix: Py_Matrix 4x4
@param matrix: a python matrix 4x4.
Sets the object's matrix and updates its transformation.
@type matrix: Py_Matrix 3x3 or 4x4
@param matrix: a 3x3 or 4x4 Python matrix. If a 3x3 matrix is given,
it is extended to a 4x4 matrix.
"""
def setName(name):