Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2018-11-15 19:10:32 +0300
committerJacques Lucke <mail@jlucke.com>2018-11-15 19:10:32 +0300
commit4fbde56f5167d91e60f489403bc8f725d397c8da (patch)
treed8ed2219b1406b109d67bb6e70fe2acaa5643072 /source/blender/python/gpu/gpu_py_matrix.c
parent4d04235d5f5ef71c30fcc706ebe99caf5c52db87 (diff)
Py API: Fix documentation/actual behavior missmatch in gpu.matrix
Diffstat (limited to 'source/blender/python/gpu/gpu_py_matrix.c')
-rw-r--r--source/blender/python/gpu/gpu_py_matrix.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/python/gpu/gpu_py_matrix.c b/source/blender/python/gpu/gpu_py_matrix.c
index ce2f37460ec..ea883bea465 100644
--- a/source/blender/python/gpu/gpu_py_matrix.c
+++ b/source/blender/python/gpu/gpu_py_matrix.c
@@ -449,23 +449,23 @@ PyDoc_STRVAR(bpygpu_matrix_get_projection_matrix_doc,
static PyObject *bpygpu_matrix_get_projection_matrix(PyObject *UNUSED(self))
{
float matrix[4][4];
- GPU_matrix_model_view_get(matrix);
+ GPU_matrix_projection_get(matrix);
return Matrix_CreatePyObject(&matrix[0][0], 4, 4, NULL);
}
-PyDoc_STRVAR(bpygpu_matrix_get_modal_view_matrix_doc,
-".. function:: get_view_matrix()\n"
+PyDoc_STRVAR(bpygpu_matrix_get_model_view_matrix_doc,
+".. function:: get_model_view_matrix()\n"
"\n"
-" Return a copy of the view matrix.\n"
+" Return a copy of the model-view matrix.\n"
"\n"
" :return: A 4x4 view matrix.\n"
" :rtype: :class:`mathutils.Matrix`\n"
);
-static PyObject *bpygpu_matrix_get_modal_view_matrix(PyObject *UNUSED(self))
+static PyObject *bpygpu_matrix_get_model_view_matrix(PyObject *UNUSED(self))
{
float matrix[4][4];
- GPU_matrix_projection_get(matrix);
+ GPU_matrix_model_view_get(matrix);
return Matrix_CreatePyObject(&matrix[0][0], 4, 4, NULL);
}
@@ -541,8 +541,8 @@ static struct PyMethodDef bpygpu_matrix_methods[] = {
/* Read State */
{"get_projection_matrix", (PyCFunction)bpygpu_matrix_get_projection_matrix,
METH_NOARGS, bpygpu_matrix_get_projection_matrix_doc},
- {"get_model_view_matrix", (PyCFunction)bpygpu_matrix_get_modal_view_matrix,
- METH_NOARGS, bpygpu_matrix_get_modal_view_matrix_doc},
+ {"get_model_view_matrix", (PyCFunction)bpygpu_matrix_get_model_view_matrix,
+ METH_NOARGS, bpygpu_matrix_get_model_view_matrix_doc},
{"get_normal_matrix", (PyCFunction)bpygpu_matrix_get_normal_matrix,
METH_NOARGS, bpygpu_matrix_get_normal_matrix_doc},