diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-01-08 19:52:30 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-01-08 19:52:30 +0300 |
commit | a6c0b968baf0782b3d3ee0b48d79cbe67b3f1825 (patch) | |
tree | 04b619fabe834928059ef02800ad11df11d86b78 /source/blender/blenkernel/intern | |
parent | b5fcf3daff618376402557c7ad514900edeeb255 (diff) |
2.5
Crash when loading certain files with armature. Use scene from context instead of local var (which can be null).
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/blender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c index 262a2b35713..6f88d3381a9 100644 --- a/source/blender/blenkernel/intern/blender.c +++ b/source/blender/blenkernel/intern/blender.c @@ -378,7 +378,7 @@ static void setup_app_data(bContext *C, BlendFileData *bfd, char *filename) /* last stage of do_versions actually, that sets recalc flags for recalc poses */ for(ob= G.main->object.first; ob; ob= ob->id.next) { if(ob->type==OB_ARMATURE) - if(ob->recalc) object_handle_update(curscene, ob); + if(ob->recalc) object_handle_update(CTX_data_scene(C), ob); } /* now tag update flags, to ensure deformers get calculated on redraw */ |