Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/dynamicpaint.c
| Show First 20 Lines • Show All 5,990 Lines • ▼ Show 20 Lines | for (int i = 0; i < numobjects; i++) { | ||||
| scene_setSubframe(scene, subframe); | scene_setSubframe(scene, subframe); | ||||
| BKE_object_modifier_update_subframe(depsgraph, scene, brushObj, true, SUBFRAME_RECURSION, | BKE_object_modifier_update_subframe(depsgraph, scene, brushObj, true, SUBFRAME_RECURSION, | ||||
| BKE_scene_frame_get(scene), eModifierType_DynamicPaint); | BKE_scene_frame_get(scene), eModifierType_DynamicPaint); | ||||
| } | } | ||||
| /* Apply brush on the surface depending on it's collision type */ | /* Apply brush on the surface depending on it's collision type */ | ||||
| if (brush->psys && brush->psys->part && | if (brush->psys && brush->psys->part && | ||||
| ELEM(brush->psys->part->type, PART_EMITTER, PART_FLUID) && | ELEM(brush->psys->part->type, PART_EMITTER, PART_FLUID, PART_MANTA_FLIP, PART_MANTA_SPRAY, PART_MANTA_BUBBLE, PART_MANTA_FOAM, PART_MANTA_TRACER) && | ||||
| psys_check_enabled(brushObj, brush->psys, for_render)) | psys_check_enabled(brushObj, brush->psys, for_render)) | ||||
| { | { | ||||
| /* Paint a particle system */ | /* Paint a particle system */ | ||||
| dynamicPaint_paintParticles(surface, brush->psys, brush, timescale); | dynamicPaint_paintParticles(surface, brush->psys, brush, timescale); | ||||
| } | } | ||||
| /* Object center distance: */ | /* Object center distance: */ | ||||
| if (brush->collision == MOD_DPAINT_COL_POINT && brushObj != ob) { | if (brush->collision == MOD_DPAINT_COL_POINT && brushObj != ob) { | ||||
| dynamicPaint_paintSinglePoint(depsgraph, surface, brushObj->loc, brush, brushObj, scene, timescale); | dynamicPaint_paintSinglePoint(depsgraph, surface, brushObj->loc, brush, brushObj, scene, timescale); | ||||
| ▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines | |||||