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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-26 14:43:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-26 14:43:23 +0400
commit7c58ec9337761291f9489996f2e9d630b0f6ad4e (patch)
tree104dc3dd151bb4412ce47bf42c7086a9181ce8b8 /source/blender/bmesh/intern/bmesh_operators.c
parent2945f512ba46f13723c154697b7c7525b0f2aff7 (diff)
use math functions for copying matrix/vector types, also cast const pointers for freeing (clang error's out otherwise)
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_operators.c')
-rw-r--r--source/blender/bmesh/intern/bmesh_operators.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c
index 63c00d5b545..e0268d6b504 100644
--- a/source/blender/bmesh/intern/bmesh_operators.c
+++ b/source/blender/bmesh/intern/bmesh_operators.c
@@ -411,7 +411,7 @@ void BMO_slot_mat_set(BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], cons
slot->data.p = BLI_memarena_alloc(op->arena, sizeof(float) * 4 * 4);
if (size == 4) {
- memcpy(slot->data.p, mat, sizeof(float) * 4 * 4);
+ copy_m4_m4(slot->data.p, (float (*)[4])mat);
}
else if (size == 3) {
copy_m4_m3(slot->data.p, (float (*)[3])mat);