Bugfix #8937: Action constraint for non-armatures shows lag on clear transform
authorJoshua Leung <aligorith@gmail.com>
Mon, 28 Apr 2008 10:35:51 +0000 (10:35 +0000)
committerJoshua Leung <aligorith@gmail.com>
Mon, 28 Apr 2008 10:35:51 +0000 (10:35 +0000)
The problem here was that the owner instead of the workob was being used to find the effect of the action constraint.

source/blender/blenkernel/intern/action.c

index add024083757ab9c72c8d90cb86331e79baae07c..c4df1db7627b3d9192e5b7bc3f84ea3ce1a314ef 100644 (file)
@@ -1139,12 +1139,13 @@ void what_does_obaction (Object *ob, bAction *act, float cframe)
        workob.constraints.first = ob->constraints.first;
        workob.constraints.last = ob->constraints.last;
 
-       strcpy(workob.parsubstr, ob->parsubstr); 
+       strcpy(workob.parsubstr, ob->parsubstr);
+       strcpy(workob.id.name, ob->id.name);
        
        /* extract_ipochannels_from_action needs id's! */
        workob.action= act;
        
-       extract_ipochannels_from_action(&tchanbase, &ob->id, act, "Object", bsystem_time(&workob, cframe, 0.0));
+       extract_ipochannels_from_action(&tchanbase, &workob.id, act, "Object", bsystem_time(&workob, cframe, 0.0));
        
        if (tchanbase.first) {
                execute_ipochannels(&tchanbase);