[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13926] trunk/blender/source/blender/ python/api2_2x: Fix for bug [#8405] makeParentDeform segfaults Blender
Campbell Barton
ideasman42 at gmail.com
Sat Mar 1 11:59:39 CET 2008
Revision: 13926
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13926
Author: campbellbarton
Date: 2008-03-01 11:59:38 +0100 (Sat, 01 Mar 2008)
Log Message:
-----------
Fix for bug [#8405] makeParentDeform segfaults Blender
linking armatures to objects didnt make pose data.
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Object.c
trunk/blender/source/blender/python/api2_2x/Scene.c
Modified: trunk/blender/source/blender/python/api2_2x/Object.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Object.c 2008-03-01 04:03:06 UTC (rev 13925)
+++ trunk/blender/source/blender/python/api2_2x/Object.c 2008-03-01 10:59:38 UTC (rev 13926)
@@ -1684,9 +1684,11 @@
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 ) {
Modified: trunk/blender/source/blender/python/api2_2x/Scene.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Scene.c 2008-03-01 04:03:06 UTC (rev 13925)
+++ trunk/blender/source/blender/python/api2_2x/Scene.c 2008-03-01 10:59:38 UTC (rev 13926)
@@ -1565,8 +1565,11 @@
object->flag = SELECT;
/* creates the curve for the text object */
- if (type == OB_FONT)
+ if (type == OB_FONT) {
text_to_curve(object, 0);
+ } else if (object->type == OB_ARMATURE) {
+ armature_rebuild_pose(object, (bArmature *)data);
+ }
/* link to scene */
base = MEM_callocN( sizeof( Base ), "pynewbase" );
More information about the Bf-blender-cvs
mailing list