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>2008-03-01 13:59:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-03-01 13:59:38 +0300
commitd1af95f4bba91436e7f98fe0e16b135b48f4395f (patch)
treee0632976dd6b5dd1e17a900449241984d9269183 /source/blender/python/api2_2x/Object.c
parent08f9a98bf938b142d577fd6b5f8fad738562e2f6 (diff)
Fix for bug [#8405] makeParentDeform segfaults Blender
linking armatures to objects didnt make pose data.
Diffstat (limited to 'source/blender/python/api2_2x/Object.c')
-rw-r--r--source/blender/python/api2_2x/Object.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c
index 83c8ed7df3d..a7a651e4465 100644
--- a/source/blender/python/api2_2x/Object.c
+++ b/source/blender/python/api2_2x/Object.c
@@ -1684,9 +1684,11 @@ static PyObject *Object_link( BPy_Object * self, PyObject * args )
self->object->data = data;
/* creates the curve for the text object */
- if (self->object->type == OB_FONT)
+ if (self->object->type == OB_FONT) {
text_to_curve(self->object, 0);
-
+ } else if (self->object->type == OB_ARMATURE) {
+ armature_rebuild_pose(self->object, (bArmature *)data);
+ }
id_us_plus( id );
if( oldid ) {
if( oldid->us > 0 ) {