forked from bartvdbraak/blender
Fix T79754: Boundary Brush crashing with symmetry enabled
When creating the boundaries for the symmetry passess, it could happen that a symmetrical vertex is not found inside the radius of the brush. In that case, the function to initialize a new boundary was called with index -1 (BOUNDARY_VERTEX_NONE), so this function should also check that the initial vertex that is going to be used to find the boundary is a valid index. Reviewed By: sergey Maniphest Tasks: T79754 Differential Revision: https://developer.blender.org/D8860
This commit is contained in:
parent
51befa4108
commit
4c3ad047e7
@ -501,6 +501,10 @@ SculptBoundary *SCULPT_boundary_data_init(Object *object,
|
||||
{
|
||||
SculptSession *ss = object->sculpt;
|
||||
|
||||
if (initial_vertex == BOUNDARY_VERTEX_NONE) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SCULPT_vertex_random_access_ensure(ss);
|
||||
SCULPT_boundary_info_ensure(object);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user