[Bf-blender-cvs] [f954029e97c] master: Curves Sculpt: Add report about missing surface for puff brush

Hans Goudey noreply at git.blender.org
Wed Jan 25 18:38:20 CET 2023


Commit: f954029e97c866a971b62a2faadf35fdb80b73bf
Author: Hans Goudey
Date:   Wed Jan 25 11:38:12 2023 -0600
Branches: master
https://developer.blender.org/rBf954029e97c866a971b62a2faadf35fdb80b73bf

Curves Sculpt: Add report about missing surface for puff brush

This is done in the other sculpt brushes that require a surface object.

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

M	source/blender/editors/sculpt_paint/curves_sculpt_puff.cc

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

diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc b/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc
index e44e97bc840..dcb7a3ae797 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_puff.cc
@@ -92,6 +92,7 @@ struct PuffOperationExecutor {
       return;
     }
     if (curves_id_->surface == nullptr || curves_id_->surface->type != OB_MESH) {
+      report_missing_surface(stroke_extension.reports);
       return;
     }



More information about the Bf-blender-cvs mailing list