diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-03-06 05:07:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-03-06 05:07:39 +0300 |
commit | e0f9c69a2cf3f3e5e31ee3f341808a250bdedddd (patch) | |
tree | a146d8ecaa2417f02854380c84cc9638d973eae5 /source | |
parent | d16254cc2c9c089695b34d08de09fa9bbaf15db2 (diff) |
quick fix for Python armature CVS making bones with no layers, therefor being invisible.
Should realy have Bone/Layer access through python.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Armature.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c index 28ae3eadcc7..eb5aba7a5ae 100644 --- a/source/blender/python/api2_2x/Armature.c +++ b/source/blender/python/api2_2x/Armature.c @@ -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; |