Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_forward.c
| Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | void workbench_forward_cache_populate(WORKBENCH_Data *vedata, Object *ob) | ||||
| } | } | ||||
| if (ob->type == OB_MESH) { | if (ob->type == OB_MESH) { | ||||
| workbench_forward_cache_populate_particles(vedata, ob); | workbench_forward_cache_populate_particles(vedata, ob); | ||||
| } | } | ||||
| ModifierData *md; | ModifierData *md; | ||||
| if (((ob->base_flag & BASE_FROM_DUPLI) == 0) && | if (((ob->base_flag & BASE_FROM_DUPLI) == 0) && | ||||
| (md = modifiers_findByType(ob, eModifierType_Smoke)) && | (md = modifiers_findByType(ob, eModifierType_Manta)) && | ||||
| (modifier_isEnabled(scene, md, eModifierMode_Realtime)) && | (modifier_isEnabled(scene, md, eModifierMode_Realtime)) && | ||||
| (((SmokeModifierData *)md)->domain != NULL)) { | (((MantaModifierData *)md)->domain != NULL)) { | ||||
| workbench_volume_cache_populate(vedata, scene, ob, md); | workbench_volume_cache_populate(vedata, scene, ob, md); | ||||
| return; /* Do not draw solid in this case. */ | return; /* Do not draw solid in this case. */ | ||||
| } | } | ||||
| if (!(DRW_object_visibility_in_active_context(ob) & OB_VISIBLE_SELF)) { | if (!(DRW_object_visibility_in_active_context(ob) & OB_VISIBLE_SELF)) { | ||||
| return; | return; | ||||
| } | } | ||||
| if (ob->dt < OB_WIRE) { | if (ob->dt < OB_WIRE) { | ||||
| ▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines | |||||