[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43764] trunk/blender/source/blender/ editors/transform/transform_conversions.c: Fix #30021: Crash happens when rotating markers

Sergey Sharybin sergey.vfx at gmail.com
Mon Jan 30 10:11:00 CET 2012


Revision: 43764
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43764
Author:   nazgul
Date:     2012-01-30 09:10:58 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Fix #30021: Crash happens when rotating markers

Modified Paths:
--------------
    trunk/blender/source/blender/editors/transform/transform_conversions.c

Modified: trunk/blender/source/blender/editors/transform/transform_conversions.c
===================================================================
--- trunk/blender/source/blender/editors/transform/transform_conversions.c	2012-01-30 09:05:26 UTC (rev 43763)
+++ trunk/blender/source/blender/editors/transform/transform_conversions.c	2012-01-30 09:10:58 UTC (rev 43764)
@@ -5640,11 +5640,14 @@
 	SpaceClip *sc = CTX_wm_space_clip(C);
 	MovieClip *clip = ED_space_clip(sc);
 
-	if(!clip || !BKE_movieclip_has_frame(clip, &sc->user)) {
-		t->total = 0;
+	t->total = 0;
+
+	if(!clip || !BKE_movieclip_has_frame(clip, &sc->user))
 		return;
-	}
 
+	if(!ELEM(t->mode, TFM_RESIZE, TFM_TRANSLATION))
+		return;
+
 	if(ar->regiontype == RGN_TYPE_PREVIEW) {
 		/* transformation was called from graph editor */
 		createTransTrackingCurvesData(C, t);



More information about the Bf-blender-cvs mailing list