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:
authorBastien Montagne <montagne29@wanadoo.fr>2016-12-02 12:45:03 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-12-02 12:47:18 +0300
commit0c958b9f8e933605497a59faf8838a544b9da740 (patch)
tree35f410a87ddf2df76a3fd43edc888f4186c47034 /source/blender/editors
parent0ac2be7030ee114e43407743c85ca72aade62e7e (diff)
Fix T50062: Mask - Clicking in ActivePoint Parent makes Blender crash.
Mask primitive adding code was not initializing correctly id_type of points' parents.
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/mask/mask_add.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/mask/mask_add.c b/source/blender/editors/mask/mask_add.c
index e3e8f35e7d8..f01af22cec9 100644
--- a/source/blender/editors/mask/mask_add.c
+++ b/source/blender/editors/mask/mask_add.c
@@ -779,6 +779,7 @@ static int create_primitive_from_points(bContext *C, wmOperator *op, const float
for (i = 0; i < num_points; i++) {
MaskSplinePoint *new_point = &new_spline->points[i];
+ BKE_mask_parent_init(&new_point->parent);
copy_v2_v2(new_point->bezt.vec[1], points[i]);
mul_v2_fl(new_point->bezt.vec[1], scale);