Fix T70006: crash when transforming paint curve edit points in sculpt mode

This was caused by rB309cd047ef46.
Above commit introduced code that would skip early for sculptmode
(leaving out the neccessary createTransPaintCurveVerts).

Reviewers: pablodp606, jbakker, mano-wii

Maniphest Tasks: T70006

Differential Revision: https://developer.blender.org/D5837
This commit is contained in:
Philipp Oeser 2019-09-18 13:32:04 +02:00
parent 383c4ba3d8
commit 67310ed976
Notes: blender-bot 2023-02-14 07:25:46 +01:00
Referenced by issue #70006, Crash when using Curve as Stroke Method for Crease or Pinch in sculpt mode
1 changed files with 1 additions and 1 deletions

View File

@ -2399,7 +2399,7 @@ void createTransData(bContext *C, TransInfo *t)
}
countAndCleanTransDataContainer(t);
}
else if (t->options & CTX_SCULPT) {
else if ((t->options & CTX_SCULPT) && !(t->options & CTX_PAINT_CURVE)) {
createTransSculpt(t);
countAndCleanTransDataContainer(t);
}