Sculpt: fix pose and expand floodfill initial vertex
This commit is contained in:
parent
23cf808585
commit
f7e062ef3e
|
@ -1125,6 +1125,11 @@ void SCULPT_floodfill_init(SculptSession *ss, SculptFloodFill *flood)
|
|||
}
|
||||
|
||||
void SCULPT_floodfill_add_initial(SculptFloodFill *flood, int index)
|
||||
{
|
||||
BLI_gsqueue_push(flood->queue, &index);
|
||||
}
|
||||
|
||||
void SCULPT_floodfill_add_and_skip_initial(SculptFloodFill *flood, int index)
|
||||
{
|
||||
BLI_gsqueue_push(flood->queue, &index);
|
||||
BLI_BITMAP_ENABLE(flood->visited_vertices, index);
|
||||
|
|
|
@ -603,7 +603,7 @@ static void sculpt_expand_topology_from_state_boundary(Object *ob,
|
|||
if (!BLI_BITMAP_TEST(boundary_vertices, i)) {
|
||||
continue;
|
||||
}
|
||||
SCULPT_floodfill_add_initial(&flood, i);
|
||||
SCULPT_floodfill_add_and_skip_initial(&flood, i);
|
||||
}
|
||||
MEM_freeN(boundary_vertices);
|
||||
|
||||
|
|
|
@ -304,6 +304,7 @@ void SCULPT_floodfill_add_initial_with_symmetry(struct Sculpt *sd,
|
|||
int index,
|
||||
float radius);
|
||||
void SCULPT_floodfill_add_initial(SculptFloodFill *flood, int index);
|
||||
void SCULPT_floodfill_add_and_skip_initial(SculptFloodFill *flood, int index);
|
||||
void SCULPT_floodfill_execute(
|
||||
struct SculptSession *ss,
|
||||
SculptFloodFill *flood,
|
||||
|
|
Loading…
Reference in New Issue