Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/fluid.c
| Show First 20 Lines • Show All 5,130 Lines • ▼ Show 20 Lines | if (tfmd->domain) { | ||||
| tfds->openvdb_compression = fds->openvdb_compression; | tfds->openvdb_compression = fds->openvdb_compression; | ||||
| tfds->clipping = fds->clipping; | tfds->clipping = fds->clipping; | ||||
| tfds->openvdb_data_depth = fds->openvdb_data_depth; | tfds->openvdb_data_depth = fds->openvdb_data_depth; | ||||
| } | } | ||||
| else if (tfmd->flow) { | else if (tfmd->flow) { | ||||
| FluidFlowSettings *tffs = tfmd->flow; | FluidFlowSettings *tffs = tfmd->flow; | ||||
| FluidFlowSettings *ffs = fmd->flow; | FluidFlowSettings *ffs = fmd->flow; | ||||
| /* 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`. */ | |||||
| tffs->psys = ffs->psys; | tffs->psys = ffs->psys; | ||||
| tffs->noise_texture = ffs->noise_texture; | tffs->noise_texture = ffs->noise_texture; | ||||
| /* initial velocity */ | /* initial velocity */ | ||||
| tffs->vel_multi = ffs->vel_multi; | tffs->vel_multi = ffs->vel_multi; | ||||
| tffs->vel_normal = ffs->vel_normal; | tffs->vel_normal = ffs->vel_normal; | ||||
| tffs->vel_random = ffs->vel_random; | tffs->vel_random = ffs->vel_random; | ||||
| tffs->vel_coord[0] = ffs->vel_coord[0]; | tffs->vel_coord[0] = ffs->vel_coord[0]; | ||||
| ▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines | |||||