Page Menu
Home
Search
Configure Global Search
Log In
Paste
P2937
Masterwork From Distant Lands
Active
Public
Actions
Authored by
Dalai Felinto (dfelinto)
on May 12 2022, 11:48 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
commit 9ba6b0bd5e0c97c19cbd93d9caa2d8f9b1f1948f
Author: Dalai Felinto <dalai@blender.org>
Date: Thu May 12 11:47:02 2022 +0200
Curves: Add notifier to update spreadsheet when adding new curves
diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_add.cc b/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
index f214efb44be..5539fda750f 100644
--- a/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
+++ b/source/blender/editors/sculpt_paint/curves_sculpt_add.cc
@@ -37,6 +37,8 @@
#include "ED_screen.h"
#include "ED_view3d.h"
+#include "WM_api.h"
+
/**
* The code below uses a prefix naming convention to indicate the coordinate space:
* cu: Local space of the curves object that is being edited.
@@ -252,6 +254,7 @@ struct AddOperationExecutor {
curves_->update_curve_types();
DEG_id_tag_update(&curves_id_->id, ID_RECALC_GEOMETRY);
+ WM_main_add_notifier(NC_GEOM | ND_DATA, &curves_id_->id);
ED_region_tag_redraw(region_);
}
Event Timeline
Dalai Felinto (dfelinto)
edited the content of this paste.
(Show Details)
May 12 2022, 11:48 AM
Dalai Felinto (dfelinto)
changed the title of this paste from untitled to
Masterwork From Distant Lands
.
Log In to Comment