[Bf-blender-cvs] [67310ed9761] master: Fix T70006: crash when transforming paint curve edit points in sculpt mode

Philipp Oeser noreply at git.blender.org
Wed Sep 18 19:32:23 CEST 2019


Commit: 67310ed976186f95e737daa2f83b2cd615351f00
Author: Philipp Oeser
Date:   Wed Sep 18 13:32:04 2019 +0200
Branches: master
https://developer.blender.org/rB67310ed976186f95e737daa2f83b2cd615351f00

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

===================================================================

M	source/blender/editors/transform/transform_convert.c

===================================================================

diff --git a/source/blender/editors/transform/transform_convert.c b/source/blender/editors/transform/transform_convert.c
index 1e783e0e7b8..67bb132972e 100644
--- a/source/blender/editors/transform/transform_convert.c
+++ b/source/blender/editors/transform/transform_convert.c
@@ -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);
   }



More information about the Bf-blender-cvs mailing list