[Bf-blender-cvs] [0cd1b5e] master: Fix T50022: "Mirror" in Dopesheet Crashes Blender

Julian Eisel noreply at git.blender.org
Tue Nov 15 15:30:44 CET 2016


Commit: 0cd1b5ef85142cc3dcd69acdd5dbfc42a622ee3b
Author: Julian Eisel
Date:   Tue Nov 15 15:27:22 2016 +0100
Branches: master
https://developer.blender.org/rB0cd1b5ef85142cc3dcd69acdd5dbfc42a622ee3b

Fix T50022: "Mirror" in Dopesheet Crashes Blender

Just fixing crash itself. Actually operator shouldn't run in most editors (not in dopesheet either I guess), but don't want to spend time on that right now.

===================================================================

M	source/blender/editors/transform/transform.c

===================================================================

diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index ef6cff1..daf0aed 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -3392,7 +3392,9 @@ static void ElementResize(TransInfo *t, TransData *td, float mat[3][3])
 	}
 	
 	protectedTransBits(td->protectflag, vec);
-	add_v3_v3v3(td->loc, td->iloc, vec);
+	if (td->loc) {
+		add_v3_v3v3(td->loc, td->iloc, vec);
+	}
 	
 	constraintTransLim(t, td);
 }




More information about the Bf-blender-cvs mailing list