quick fix for Python armature CVS making bones with no layers, therefor being invisible.

Should realy have Bone/Layer access through python.
This commit is contained in:
Campbell Barton
2006-03-06 02:07:39 +00:00
parent d16254cc2c
commit e0f9c69a2c

View File

@@ -274,7 +274,10 @@ int BonesDict_SetItem(BPy_BonesDict *self, PyObject *key, PyObject *value)
editbone->zwidth = ((BPy_EditBone*)value)->zwidth;
VECCOPY(editbone->head, ((BPy_EditBone*)value)->head);
VECCOPY(editbone->tail, ((BPy_EditBone*)value)->tail);
// FIXME, should be exposed via python. this avoids creating bones with no layers.
editbone->layer= 1;
//set object pointer
((BPy_EditBone*)value)->editbone = editbone;