Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-06-05 15:28:15 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-06-05 15:28:15 +0400
commit33246ea4370c0bfbca08157aa817e4da65859211 (patch)
tree4ccc381a500ee8658c29b2e8995616645edc9843 /source/blender
parentf885306bb8b12fb20817bd499fb52d9f072d6b55 (diff)
Fix #31713: Mask editor: RMB drag crashes Blender
Simple missed NULL check in TransData creation.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/transform/transform_conversions.c5
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;