Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/dynamicpaint.c
| Show First 20 Lines • Show All 6,272 Lines • ▼ Show 20 Lines | for (int i = 0; i < numobjects; i++) { | ||||
| true, | true, | ||||
| SUBFRAME_RECURSION, | SUBFRAME_RECURSION, | ||||
| BKE_scene_frame_get(scene), | BKE_scene_frame_get(scene), | ||||
| eModifierType_DynamicPaint); | 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_FLUID_FLIP, | |||||
| PART_FLUID_SPRAY, | |||||
| PART_FLUID_BUBBLE, | |||||
| PART_FLUID_FOAM, | |||||
| PART_FLUID_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( | dynamicPaint_paintSinglePoint( | ||||
| depsgraph, surface, brushObj->loc, brush, brushObj, scene, timescale); | depsgraph, surface, brushObj->loc, brush, brushObj, scene, timescale); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||