Bugfix #3699
authorTon Roosendaal <ton@blender.org>
Tue, 11 Apr 2006 10:09:33 +0000 (10:09 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 11 Apr 2006 10:09:33 +0000 (10:09 +0000)
When using non-relative Shape keys, the lock option (live updates) in the
IpoWindow didn't work after one of the keylines was selected.

source/blender/src/editipo.c

index 606c24f5bfc815cc4ee967a952760573ac89988a..c119f1a5e06ce4a2956a3a8a1dfd42144da91276 100644 (file)
@@ -4121,7 +4121,11 @@ void transform_ipo(int mode)
                                        force_draw_plus(SPACE_VIEW3D, 0);
                                }
                                else if(G.sipo->blocktype==ID_KE) {
-                                       DAG_object_flush_update(G.scene, OBACT, OB_RECALC_DATA);
+                                       Object *ob= OBACT;
+                                       if(ob) {
+                                               ob->shapeflag &= ~OB_SHAPE_TEMPLOCK;
+                                               DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
+                                       }
                                        force_draw_plus(SPACE_VIEW3D, 0);
                                }
                                else if(G.sipo->blocktype==ID_PO) {