diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-05 12:31:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-05 12:31:17 +0300 |
commit | f1a3b68e76d6a188d4c77384baceca70f956c31a (patch) | |
tree | 5229fe58422998aa8645fbf81ad04eda3ffd4cf4 /source/blender/editors/transform | |
parent | b9db470636fb77e0240061fb27301b42f05d271b (diff) |
Transform: avoid assert in wpaint mode
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform_conversions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_conversions.c b/source/blender/editors/transform/transform_conversions.c index a826e1a291a..de943bc4073 100644 --- a/source/blender/editors/transform/transform_conversions.c +++ b/source/blender/editors/transform/transform_conversions.c @@ -8593,7 +8593,10 @@ void createTransData(bContext *C, TransInfo *t) countAndCleanTransDataContainer(t); } } - + } + /* Mark as initialized if above checks fail. */ + if (t->data_len_all == -1) { + t->data_len_all = 0; } } else if (ob && (ob->mode & OB_MODE_PARTICLE_EDIT) && PE_start_edit(PE_get_current(scene, ob))) { |