diff options
author | Jacques Lucke <jacques@blender.org> | 2022-07-28 12:37:35 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-07-28 12:37:35 +0300 |
commit | aa7d13034701b6e4e9eada24cb96a7ec78171a0a (patch) | |
tree | 314b98801ba342d2d012a24c09c5711eaf885b2c /source/blender/editors/sculpt_paint/curves_sculpt_brush.cc | |
parent | 397731d4df44197cf9cf359d9da38156ad86904e (diff) |
Curves: improve handling of empty surface meshes
Diffstat (limited to 'source/blender/editors/sculpt_paint/curves_sculpt_brush.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/curves_sculpt_brush.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_brush.cc b/source/blender/editors/sculpt_paint/curves_sculpt_brush.cc index a180a232189..95261f29914 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_brush.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_brush.cc @@ -391,6 +391,16 @@ CurvesSculptCommonContext::CurvesSculptCommonContext(const bContext &C) this->rv3d = CTX_wm_region_view3d(&C); } +void report_empty_original_surface(ReportList *reports) +{ + BKE_report(reports, RPT_WARNING, TIP_("Original surface mesh is empty")); +} + +void report_empty_evaluated_surface(ReportList *reports) +{ + BKE_report(reports, RPT_WARNING, TIP_("Evaluated surface mesh is empty")); +} + void report_missing_surface(ReportList *reports) { BKE_report(reports, RPT_WARNING, TIP_("Missing surface mesh")); |