BGE Patch: Add Shape Action support and update MSCV_7 project file for glew.
[blender.git] / source / blender / blenloader / intern / readfile.c
index 7d0dd9e41c11a957e0c61347211b53c804749164..fa7cbb06139a0d1d186317fd7b991e2343f1a83e 100644 (file)
@@ -2991,6 +2991,10 @@ static void lib_link_object(FileData *fd, Main *main)
                                        bActionActuator *aa= act->data;
                                        aa->act= newlibadr(fd, ob->id.lib, aa->act);
                                }
+                               else if(act->type==ACT_SHAPEACTION) {
+                                       bActionActuator *aa= act->data;
+                                       aa->act= newlibadr(fd, ob->id.lib, aa->act);
+                               }
                                else if(act->type==ACT_PROPERTY) {
                                        bPropertyActuator *pa= act->data;
                                        pa->ob= newlibadr(fd, ob->id.lib, pa->ob);
@@ -8399,6 +8403,10 @@ static void expand_object(FileData *fd, Main *mainvar, Object *ob)
                        bActionActuator *aa= act->data;
                        expand_doit(fd, mainvar, aa->act);
                }
+               else if(act->type==ACT_SHAPEACTION) {
+                       bActionActuator *aa= act->data;
+                       expand_doit(fd, mainvar, aa->act);
+               }
                else if(act->type==ACT_PROPERTY) {
                        bPropertyActuator *pa= act->data;
                        expand_doit(fd, mainvar, pa->ob);