Curves Sculpt: Add report about missing surface for puff brush

This is done in the other sculpt brushes that require a surface object.
This commit is contained in:
Hans Goudey 2023-01-25 11:38:12 -06:00
parent 405b08e00d
commit f954029e97
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}