bugfix [#24508] Render and changing scenes crashes.
authorCampbell Barton <ideasman42@gmail.com>
Wed, 3 Nov 2010 11:14:02 +0000 (11:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 3 Nov 2010 11:14:02 +0000 (11:14 +0000)
commit1f2469d9925ee5701375ffec75d50f8c5601b552
treefb9364878789ee41d08a60008184e04ed816f001
parentc31536fc534156559fb19d008323b28a3dc4ef5f
bugfix [#24508] Render and changing scenes crashes.
The scenes 'Render' is kept by blender while blender runs but the callbacks were not cleared when the render was done.
In this case the callback would reference a freed render job.

This isn't normally a problem because on re-rendering new callbacks are set, however the sequencer can render a previously rendered scene without setting up callbacks.
Simple fix is to to dummy callbacks applied onto the scenes 'Render' struct once its finished.
source/blender/editors/render/render_internal.c
source/blender/render/extern/include/RE_pipeline.h
source/blender/render/intern/source/pipeline.c