use radians for 'spin' bmesh operator (since the rest of the py api uses radians). also rename BMO_OP_SLOT_SUBTYPE_MAP_FLOAT -> BMO_OP_SLOT_SUBTYPE_MAP_FLT for consistency.

This commit is contained in:
2012-11-28 00:47:33 +00:00
parent 8ecce451ab
commit c5a8bd498d
6 changed files with 17 additions and 18 deletions

View File

@@ -387,7 +387,7 @@ static int bpy_slot_from_py(BMesh *bm, BMOperator *bmop, BMOpSlot *slot, PyObjec
}
break;
}
case BMO_OP_SLOT_SUBTYPE_MAP_FLOAT:
case BMO_OP_SLOT_SUBTYPE_MAP_FLT:
{
if (PyDict_Size(value) > 0) {
PyObject *arg_key, *arg_value;
@@ -593,7 +593,7 @@ static PyObject* bpy_slot_to_py(BMesh *bm, BMOpSlot *slot)
}
break;
}
case BMO_OP_SLOT_SUBTYPE_MAP_FLOAT:
case BMO_OP_SLOT_SUBTYPE_MAP_FLT:
{
item = PyDict_New();
if (slot_hash) {