fix [#27915] Relax Pose crashes blender on bone with ChildOf constraint in linked rig
authorCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jul 2011 14:33:28 +0000 (14:33 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 9 Jul 2011 14:33:28 +0000 (14:33 +0000)
source/blender/editors/armature/poseUtils.c

index 7ade93076e5a44f8e07f5db87104f9ea8534fe5b..3c74a816fdbcbf096a9079d375da27ca76fdfa0a 100644 (file)
@@ -121,7 +121,7 @@ static void fcurves_to_pchan_links_get (ListBase *pfLinks, Object *ob, bAction *
                pfl->oldangle = pchan->rotAngle;
                
                /* make copy of custom properties */
-               if (transFlags & ACT_TRANS_PROP)
+               if (pchan->prop && (transFlags & ACT_TRANS_PROP))
                        pfl->oldprops = IDP_CopyProperty(pchan->prop);
        }
 }