Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-08-16 20:00:38 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-08-17 18:34:08 +0300
commit9c241eae487f29f6eb3e996fb2d39c82ceeb0b75 (patch)
tree67de410017e04c9f8ed28746980954e790878cf9
parentfd6725cbfb113b0add60426154903ddb79e0c18f (diff)
Fix T79597: Crash with dyntopo after paint cursor refactor
The paint cursor now uses a single call to SCULPT_cursor_geometry_info_update and the Sculpt API to update both the radius and the SculptSession data, so random access needs to be initialized for dyntopo before using API functions. Reviewed By: sergey Maniphest Tasks: T79597 Differential Revision: https://developer.blender.org/D8489
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index d68b1226b40..2fdf04a8b46 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -7125,6 +7125,7 @@ bool SCULPT_cursor_geometry_info_update(bContext *C,
/* Update the active vertex of the SculptSession. */
ss->active_vertex_index = srd.active_vertex_index;
+ SCULPT_vertex_random_access_ensure(ss);
copy_v3_v3(out->active_vertex_co, SCULPT_active_vertex_co_get(ss));
switch (BKE_pbvh_type(ss->pbvh)) {