Bugfix: "Hide" button in modifiers panel did only hide smoke domain, not the smoke.

Reported by nudelZ
This commit is contained in:
Daniel Genrich 2014-10-12 16:36:35 +02:00
parent 744aaa955f
commit 9d078f2916
1 changed files with 1 additions and 1 deletions

View File

@ -7512,7 +7512,7 @@ void draw_object(Scene *scene, ARegion *ar, View3D *v3d, Base *base, const short
}
/* draw code for smoke */
if ((md = modifiers_findByType(ob, eModifierType_Smoke))) {
if ((md = modifiers_findByType(ob, eModifierType_Smoke)) && (modifier_isEnabled(scene, md, eModifierMode_Realtime))) {
SmokeModifierData *smd = (SmokeModifierData *)md;
// draw collision objects