Bugfix #21463: Bone driven Shapekey broken in 2.5Alpha2 (for drivers from 2.49b)
authorJoshua Leung <aligorith@gmail.com>
Fri, 5 Mar 2010 01:29:56 +0000 (01:29 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 5 Mar 2010 01:29:56 +0000 (01:29 +0000)
Animation conversion needed to make transform channel driver vars (for bones) to be in local space, since that's what the old code did (albeit in a slightly more roundabout way).

source/blender/blenkernel/intern/ipo.c

index dbde6403226fc300603ccb6ee5ef6cdb07f229d2..807b584d6f8e07243f91d34494c664404bec5c7a 100644 (file)
@@ -1051,6 +1051,7 @@ static ChannelDriver *idriver_to_cdriver (IpoDriver *idriver)
                                if (idriver->name[0])
                                        BLI_strncpy(dtar->pchan_name, idriver->name, 32);
                                dtar->transChan= adrcode_to_dtar_transchan(idriver->adrcode);
+                               dtar->flag |= DTAR_FLAG_LOCALSPACE; /* old drivers took local space */
                        }
                }
                else { /* Object */