[Bf-blender-cvs] [b38cd1bcbed] master: Fix: Missing curves type count cache update in add brush
Hans Goudey
noreply at git.blender.org
Tue May 10 14:27:39 CEST 2022
Commit: b38cd1bcbedc5699896cec7ea26dd70bce52eb9c
Author: Hans Goudey
Date: Tue May 10 14:27:36 2022 +0200
Branches: master
https://developer.blender.org/rBb38cd1bcbedc5699896cec7ea26dd70bce52eb9c
Fix: Missing curves type count cache update in add brush
===================================================================
M source/blender/editors/sculpt_paint/curves_sculpt_add.cc
===================================================================
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_add.cc b/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
index 1fdecf47bbd..6edc9194319 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
@@ -228,6 +228,8 @@ struct AddOperationExecutor {
threading::parallel_invoke([&]() { this->initialize_curve_offsets(tot_added_curves); },
[&]() { this->initialize_attributes(added_points); });
+ curves_->update_curve_types();
+
DEG_id_tag_update(&curves_id_->id, ID_RECALC_GEOMETRY);
ED_region_tag_redraw(region_);
}
More information about the Bf-blender-cvs
mailing list