Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_forward.c
| Show All 29 Lines | |||||
| #include "BLI_utildefines.h" | #include "BLI_utildefines.h" | ||||
| #include "BKE_modifier.h" | #include "BKE_modifier.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_paint.h" | #include "BKE_paint.h" | ||||
| #include "BKE_particle.h" | #include "BKE_particle.h" | ||||
| #include "DNA_image_types.h" | #include "DNA_image_types.h" | ||||
| #include "DNA_manta_types.h" | |||||
| #include "DNA_mesh_types.h" | #include "DNA_mesh_types.h" | ||||
| #include "DNA_modifier_types.h" | #include "DNA_modifier_types.h" | ||||
| #include "DNA_node_types.h" | #include "DNA_node_types.h" | ||||
| #include "ED_view3d.h" | #include "ED_view3d.h" | ||||
| #include "GPU_shader.h" | #include "GPU_shader.h" | ||||
| #include "GPU_texture.h" | #include "GPU_texture.h" | ||||
| ▲ Show 20 Lines • Show All 569 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) && | ||||
| (((MantaModifierData *)md)->domain->type == FLUID_DOMAIN_TYPE_GAS)) { | |||||
| 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 181 Lines • Show Last 20 Lines | |||||