diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2022-09-29 13:57:48 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-11-01 14:19:14 +0300 |
commit | 3f91540cef7e28e372248804b1f6fbe2fc271bbb (patch) | |
tree | 785d150c86284826ef7004f1e677510666499894 /source/blender/blenloader/intern/versioning_legacy.c | |
parent | 3136fb886e218379a53944ea463dfd772efcc954 (diff) |
Fix T101062: sculpt curves crash using a paintcurve brush
For one, paintcurves were not considered in curves sculpt mode at all
(so you couldnt draw them). This is now enabled.
And the second issue was that since curves sculpt mode uses the reguar
paint_stroke_modal() [which handles paintcurves], this was actually
excuted, freeing the PaintStroke from SculptCurvesBrushStrokeData (but
not the CurvesSculptStrokeOperation) and immediately return
OPERATOR_FINISHED from modal (resulting in a double MEM_delete of
SculptCurvesBrushStrokeData -- in both invoke and modal).
There might be better ways to handle the memory free, for now the double
freeing is prevented by setting the operator customdata to NULL (and
check for that later).
Maniphest Tasks: T101062
Differential Revision: https://developer.blender.org/D16099
Diffstat (limited to 'source/blender/blenloader/intern/versioning_legacy.c')
0 files changed, 0 insertions, 0 deletions