[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43224] trunk/blender/source/blender/ editors/space_clip/clip_ops.c: Fix #29828: Reloading background movie clip crashes Blender

Sergey Sharybin sergey.vfx at gmail.com
Sun Jan 8 20:51:20 CET 2012


Revision: 43224
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43224
Author:   nazgul
Date:     2012-01-08 19:51:14 +0000 (Sun, 08 Jan 2012)
Log Message:
-----------
Fix #29828: Reloading background movie clip crashes Blender

Crash was caused by invalidating scopes used by space clip editors. It shouldn't
actually happen in movie clip reload operator due to it will happen on NA_EDITED
notifier handler sent to movie clip context.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/clip_ops.c

Modified: trunk/blender/source/blender/editors/space_clip/clip_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_ops.c	2012-01-08 14:55:43 UTC (rev 43223)
+++ trunk/blender/source/blender/editors/space_clip/clip_ops.c	2012-01-08 19:51:14 UTC (rev 43224)
@@ -220,14 +220,11 @@
 
 static int reload_exec(bContext *C, wmOperator *UNUSED(op))
 {
-	SpaceClip *sc= CTX_wm_space_clip(C);
 	MovieClip *clip= CTX_data_edit_movieclip(C);
 
 	if(!clip)
 		return OPERATOR_CANCELLED;
 
-	sc->scopes.ok= 0;
-
 	BKE_movieclip_reload(clip);
 
 	WM_event_add_notifier(C, NC_MOVIECLIP|NA_EDITED, clip);




More information about the Bf-blender-cvs mailing list