Fix T50022: "Mirror" in Dopesheet Crashes Blender
authorJulian Eisel <eiseljulian@gmail.com>
Tue, 15 Nov 2016 14:27:22 +0000 (15:27 +0100)
committerJulian Eisel <eiseljulian@gmail.com>
Tue, 15 Nov 2016 14:30:33 +0000 (15:30 +0100)
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.

source/blender/editors/transform/transform.c

index ef6cff19181af4dc9f14a48b66bc3449e0737511..daf0aed59e7cb4fd90f32546f45cef76a1bf2152 100644 (file)
@@ -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);
 }