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>2006-03-06 05:07:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-03-06 05:07:39 +0300
commite0f9c69a2cf3f3e5e31ee3f341808a250bdedddd (patch)
treea146d8ecaa2417f02854380c84cc9638d973eae5 /source/blender/python/api2_2x/Armature.c
parentd16254cc2c9c089695b34d08de09fa9bbaf15db2 (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/blender/python/api2_2x/Armature.c')
-rw-r--r--source/blender/python/api2_2x/Armature.c5
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;