diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-03 00:28:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-03 00:28:43 +0400 |
commit | 2ed69a95f499081aacc15c0295f3461c38430554 (patch) | |
tree | a17a6ba86b8e05ae97de5a9a5a02312ae0153553 /source/blender/bmesh/intern/bmesh_operators.c | |
parent | 2d8a9a0cc393aabb5a3b2bc83ed063098875f799 (diff) |
add bmesh/python operator support for vector and matrix args.
also rename BMO_OP_SLOT_PNT to BMO_OP_SLOT_PTR (matches RNA and sounds less like 'point')
Diffstat (limited to 'source/blender/bmesh/intern/bmesh_operators.c')
-rw-r--r-- | source/blender/bmesh/intern/bmesh_operators.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/bmesh/intern/bmesh_operators.c b/source/blender/bmesh/intern/bmesh_operators.c index efd02833185..5447e6b5a55 100644 --- a/source/blender/bmesh/intern/bmesh_operators.c +++ b/source/blender/bmesh/intern/bmesh_operators.c @@ -378,8 +378,8 @@ void BMO_slot_mat3_set(BMOperator *op, const char *slot_name, float r_mat[3][3]) void BMO_slot_ptr_set(BMOperator *op, const char *slot_name, void *p) { BMOpSlot *slot = BMO_slot_get(op, slot_name); - BLI_assert(slot->slot_type == BMO_OP_SLOT_PNT); - if (!(slot->slot_type == BMO_OP_SLOT_PNT)) + BLI_assert(slot->slot_type == BMO_OP_SLOT_PTR); + if (!(slot->slot_type == BMO_OP_SLOT_PTR)) return; slot->data.p = p; @@ -430,8 +430,8 @@ int BMO_slot_bool_get(BMOperator *op, const char *slot_name) void *BMO_slot_ptr_get(BMOperator *op, const char *slot_name) { BMOpSlot *slot = BMO_slot_get(op, slot_name); - BLI_assert(slot->slot_type == BMO_OP_SLOT_PNT); - if (!(slot->slot_type == BMO_OP_SLOT_PNT)) + BLI_assert(slot->slot_type == BMO_OP_SLOT_PTR); + if (!(slot->slot_type == BMO_OP_SLOT_PTR)) return NULL; return slot->data.p; |