Fix #146233: Dyntopo sample detail size crashes with cursor not on mesh
Introduced by 45d9bfa734
Pull Request: https://projects.blender.org/blender/blender/pulls/146249
This commit is contained in:
@@ -637,7 +637,11 @@ static void dyntopo_detail_size_sample_from_surface(Object &ob,
|
||||
DyntopoDetailSizeEditCustomData *cd)
|
||||
{
|
||||
SculptSession &ss = *ob.sculpt;
|
||||
BMVert *active_vertex = std::get<BMVert *>(ss.active_vert());
|
||||
const ActiveVert active_vert = ss.active_vert();
|
||||
if (std::holds_alternative<std::monostate>(active_vert)) {
|
||||
return;
|
||||
}
|
||||
BMVert *active_vertex = std::get<BMVert *>(active_vert);
|
||||
|
||||
float len_accum = 0;
|
||||
BMeshNeighborVerts neighbors;
|
||||
|
||||
Reference in New Issue
Block a user