Fix T42441: Smoke doesn't render in 3DView if domain object's maximum draw type is set to "wire"

Added an exception in convertblender.c's is_object_hidden(), so that an object with active
smoke modifier is never considered hidden.
This commit is contained in:
Bastien Montagne 2014-10-30 09:34:17 +01:00
parent beaed66f29
commit 3ea11c1ac8
Notes: blender-bot 2023-02-14 09:53:00 +01:00
Referenced by issue #42441, Smoke doesn't render if object's maximum draw type is set to "wire"
1 changed files with 8 additions and 0 deletions

View File

@ -3917,7 +3917,15 @@ static bool is_object_hidden(Render *re, Object *ob)
if (re->r.scemode & R_VIEWPORT_PREVIEW) {
/* Mesh deform cages and so on mess up the preview. To avoid the problem,
* viewport doesn't show mesh object if its draw type is bounding box or wireframe.
* Unless it's an active smoke domain!
*/
ModifierData *md = NULL;
if ((md = modifiers_findByType(ob, eModifierType_Smoke)) &&
(modifier_isEnabled(re->scene, md, eModifierMode_Realtime)))
{
return false;
}
return ELEM(ob->dt, OB_BOUNDBOX, OB_WIRE);
}
else {