diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-05 15:28:15 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-05 15:28:15 +0400 |
commit | 33246ea4370c0bfbca08157aa817e4da65859211 (patch) | |
tree | 4ccc381a500ee8658c29b2e8995616645edc9843 /source/blender/editors/transform/transform_conversions.c | |
parent | f885306bb8b12fb20817bd499fb52d9f072d6b55 (diff) |
Fix #31713: Mask editor: RMB drag crashes Blender
Simple missed NULL check in TransData creation.
Diffstat (limited to 'source/blender/editors/transform/transform_conversions.c')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index 9b8e5daca07..746ca9c33a4 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -5950,6 +5950,11 @@ static void createTransMaskingData(bContext *C, TransInfo *t) int count = 0, countsel = 0; int propmode = t->flag & T_PROP_EDIT; + t->total = 0; + + if (!mask) + return; + /* count */ for (masklay = mask->masklayers.first; masklay; masklay = masklay->next) { MaskSpline *spline = masklay->splines.first; |