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
This commit is contained in:
parent
fd6725cbfb
commit
9c241eae48
Notes:
blender-bot
2023-05-29 09:17:12 +02:00
Referenced by issue #79858, Dyntopo crash Referenced by issue #79597, Crash when sculpting on geometry and dyntopo enabled
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue