Path in blender file loader end (setup_app_data) for armature conversion
didn't properly limit to armatures only, and was even called before a
scene dependency graph was made.

Rare crash btw; you have to save a file *before* a redraw was finished
in the UI.
This commit is contained in:
2006-06-20 12:41:52 +00:00
parent c63efa6243
commit 5424863367

View File

@@ -375,17 +375,18 @@ static void setup_app_data(BlendFileData *bfd, char *filename)
G.f= bfd->globalf;
/* last stage of do_versions actually, update objects (like recalc poses) */
for(ob= G.main->object.first; ob; ob= ob->id.next) {
if(ob->recalc) object_handle_update(ob);
}
if (!G.background) {
setscreen(G.curscreen);
}
/* baseflags */
set_scene_bg(G.scene);
/* last stage of do_versions actually, update objects (like recalc poses) */
for(ob= G.main->object.first; ob; ob= ob->id.next) {
if(ob->type==OB_ARMATURE)
if(ob->recalc) object_handle_update(ob);
}
if (G.f & G_DOSCRIPTLINKS) {
/* there's an onload scriptlink to execute in screenmain */
mainqenter(ONLOAD_SCRIPT, 1);