Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_mesh.cpp
| Show First 20 Lines • Show All 1,074 Lines • ▼ Show 20 Lines | if(b_mesh) { | ||||
| if(render_layer.use_hair && mesh->subdivision_type == Mesh::SUBDIVISION_NONE) | if(render_layer.use_hair && mesh->subdivision_type == Mesh::SUBDIVISION_NONE) | ||||
| sync_curves(mesh, b_mesh, b_ob, false); | sync_curves(mesh, b_mesh, b_ob, false); | ||||
| if(can_free_caches) { | if(can_free_caches) { | ||||
| b_ob.cache_release(); | b_ob.cache_release(); | ||||
| } | } | ||||
| /* free derived mesh */ | /* free derived mesh */ | ||||
| b_data.meshes.remove(b_mesh, false); | b_data.meshes.remove(b_mesh, false, true, false); | ||||
| } | } | ||||
| } | } | ||||
| mesh->geometry_flags = requested_geometry_flags; | mesh->geometry_flags = requested_geometry_flags; | ||||
| /* fluid motion */ | /* fluid motion */ | ||||
| sync_mesh_fluid_motion(b_ob, scene, mesh); | sync_mesh_fluid_motion(b_ob, scene, mesh); | ||||
| /* tag update */ | /* tag update */ | ||||
| ▲ Show 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | if(numverts) { | ||||
| } | } | ||||
| } | } | ||||
| /* hair motion */ | /* hair motion */ | ||||
| if(numkeys) | if(numkeys) | ||||
| sync_curves(mesh, b_mesh, b_ob, true, time_index); | sync_curves(mesh, b_mesh, b_ob, true, time_index); | ||||
| /* free derived mesh */ | /* free derived mesh */ | ||||
| b_data.meshes.remove(b_mesh, false); | b_data.meshes.remove(b_mesh, false, true, false); | ||||
| } | } | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||