Fix #4368
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user