Remove dirty normals assert from drawobject.c
Dirty normals already being checked in DerivedMesh.c, and this things really rather be localized in one single place than being checked all over the code.
This commit is contained in:
@@ -3094,9 +3094,6 @@ static void draw_em_fancy(Scene *scene, ARegion *ar, View3D *v3d,
|
||||
BMVert *eve_act = NULL;
|
||||
bool use_occlude_wire = (v3d->flag2 & V3D_OCCLUDE_WIRE) && (dt > OB_WIRE);
|
||||
|
||||
// BLI_assert(!cageDM || !(cageDM->dirty & DM_DIRTY_NORMALS));
|
||||
BLI_assert(!finalDM || !(finalDM->dirty & DM_DIRTY_NORMALS));
|
||||
|
||||
if (em->bm->selected.last) {
|
||||
BMEditSelection *ese = em->bm->selected.last;
|
||||
/* face is handeled above */
|
||||
@@ -3369,8 +3366,6 @@ static void draw_mesh_fancy(Scene *scene, ARegion *ar, View3D *v3d, RegionView3D
|
||||
if (!dm)
|
||||
return;
|
||||
|
||||
if (dm) BLI_assert(!(dm->dirty & DM_DIRTY_NORMALS));
|
||||
|
||||
/* Check to draw dynamic paint colors (or weights from WeightVG modifiers).
|
||||
* Note: Last "preview-active" modifier in stack will win! */
|
||||
if (DM_get_tessface_data_layer(dm, CD_PREVIEW_MCOL) && modifiers_isPreview(ob))
|
||||
|
||||
Reference in New Issue
Block a user