Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/dynamicpaint.c
| Show First 20 Lines • Show All 1,310 Lines • ▼ Show 20 Lines | if (tpmd->brush) { | ||||
| t_brush->g = brush->g; | t_brush->g = brush->g; | ||||
| t_brush->b = brush->b; | t_brush->b = brush->b; | ||||
| t_brush->alpha = brush->alpha; | t_brush->alpha = brush->alpha; | ||||
| t_brush->wetness = brush->wetness; | t_brush->wetness = brush->wetness; | ||||
| t_brush->particle_radius = brush->particle_radius; | t_brush->particle_radius = brush->particle_radius; | ||||
| t_brush->particle_smooth = brush->particle_smooth; | t_brush->particle_smooth = brush->particle_smooth; | ||||
| t_brush->paint_distance = brush->paint_distance; | t_brush->paint_distance = brush->paint_distance; | ||||
| /* NOTE: This is dangerous, as it will generate invalid data in case we are copying between | |||||
| * different objects. Extra external code has to be called then to ensure proper remapping of | |||||
| * that pointer. See e.g. `BKE_object_copy_particlesystems` or `BKE_object_copy_modifier`. */ | |||||
| t_brush->psys = brush->psys; | t_brush->psys = brush->psys; | ||||
| if (brush->paint_ramp) { | if (brush->paint_ramp) { | ||||
| memcpy(t_brush->paint_ramp, brush->paint_ramp, sizeof(ColorBand)); | memcpy(t_brush->paint_ramp, brush->paint_ramp, sizeof(ColorBand)); | ||||
| } | } | ||||
| if (brush->vel_ramp) { | if (brush->vel_ramp) { | ||||
| memcpy(t_brush->vel_ramp, brush->vel_ramp, sizeof(ColorBand)); | memcpy(t_brush->vel_ramp, brush->vel_ramp, sizeof(ColorBand)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 5,080 Lines • Show Last 20 Lines | |||||