Fix: Noisy false-positive assert in dyntopo sculpt

This assert triggers whenever dyntopo is used, even when all the
objects and environment is pristine. The semantic of the assert
is not very clear either.

Avoid having a false-positive trigger which gets in the way of any
development in the area.
This commit is contained in:
Sergey Sharybin
2023-10-06 11:27:58 +02:00
committed by Sergey Sharybin
parent ac4fa638c1
commit 1885116a9a

View File

@@ -1508,8 +1508,6 @@ bool pbvh_bmesh_node_raycast(PBVHNode *node,
bool hit = false;
float nearest_vertex_co[3] = {0.0f};
BLI_assert(!use_original || (BLI_gset_len(node->bm_faces) > 0 && node->bm_tot_ortri));
use_original = use_original && node->bm_tot_ortri;
GSetIterator gs_iter;