diff options
author | Julian Eisel <eiseljulian@gmail.com> | 2016-11-15 17:27:22 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2016-11-15 17:30:33 +0300 |
commit | 0cd1b5ef85142cc3dcd69acdd5dbfc42a622ee3b (patch) | |
tree | 111f4e813499990e28323dc37fb5612741bc7175 /source/blender/editors/transform | |
parent | 69470e36d6b17042260b06f26ca3c2f702747324 (diff) |
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.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index ef6cff19181..daf0aed59e7 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); } |