Fix T37869: vertex paint + wireframe draw mode + smoke domain did not draw correct.

This commit is contained in:
Brecht Van Lommel 2013-12-19 18:52:26 +01:00
parent 19c0c7992a
commit e7ac87a254
Notes: blender-bot 2023-02-14 11:27:36 +01:00
Referenced by issue #37884, Cycles render crash using full black for hair lenght.
Referenced by issue #37869, Smoke domain and vertex/weight paint in wire-draw mode.
2 changed files with 3 additions and 2 deletions

View File

@ -535,8 +535,9 @@ void draw_smoke_volume(SmokeDomainSettings *sds, Object *ob,
if (gl_depth) {
glEnable(GL_DEPTH_TEST);
glDepthMask(GL_TRUE);
}
glDepthMask(GL_TRUE);
}
#ifdef SMOKE_DEBUG_VELOCITY

View File

@ -105,7 +105,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob,
{
SmokeModifierData *smd = (SmokeModifierData *) md;
if(flag & MOD_APPLY_ORCO)
if (flag & MOD_APPLY_ORCO)
return dm;
return smokeModifier_do(smd, md->scene, ob, dm);