diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2019-03-04 13:51:11 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2019-03-04 15:04:41 +0300 |
commit | baee9b014ab0950db4730439098f35df6ea80291 (patch) | |
tree | 247b8fb7f10be3b89a486906babfe314f8e09729 /source/blender/editors/sculpt_paint/paint_curve.c | |
parent | a53dccb2a9cabd0141cb7efb7959acfd4ea24dad (diff) |
Outliner: better support for paintcurves ('Blender File' view)
- paintcurves were hitting an assert in outliner_add_element()
- missing outliner update when adding a paintcurve
- paintcurves were not showing an icon [they dont have a dedicated icon,
took the one used elsewhere]
Reviewers: brecht
Differential Revision: https://developer.blender.org/D4445
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_curve.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_curve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_curve.c b/source/blender/editors/sculpt_paint/paint_curve.c index bd2fea78a99..6e43c0ab492 100644 --- a/source/blender/editors/sculpt_paint/paint_curve.c +++ b/source/blender/editors/sculpt_paint/paint_curve.c @@ -166,6 +166,8 @@ static int paintcurve_new_exec(bContext *C, wmOperator *UNUSED(op)) p->brush->paint_curve = BKE_paint_curve_add(bmain, "PaintCurve"); } + WM_event_add_notifier(C, NC_PAINTCURVE | NA_ADDED, NULL); + return OPERATOR_FINISHED; } |