Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_curves.cc
| Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | AbcCurveMeshWriter::AbcCurveMeshWriter(Object *ob, | ||||
| : AbcGenericMeshWriter(ob, parent, time_sampling, settings) | : AbcGenericMeshWriter(ob, parent, time_sampling, settings) | ||||
| { | { | ||||
| } | } | ||||
| Mesh *AbcCurveMeshWriter::getEvaluatedMesh(Scene * /*scene_eval*/, | Mesh *AbcCurveMeshWriter::getEvaluatedMesh(Scene * /*scene_eval*/, | ||||
| Object *ob_eval, | Object *ob_eval, | ||||
| bool &r_needsfree) | bool &r_needsfree) | ||||
| { | { | ||||
| if (ob_eval->runtime.mesh_eval != NULL) { | Mesh *mesh_eval = BKE_object_get_evaluated_mesh(ob_eval); | ||||
| if (mesh_eval != NULL) { | |||||
| /* Mesh_eval only exists when generative modifiers are in use. */ | /* Mesh_eval only exists when generative modifiers are in use. */ | ||||
| r_needsfree = false; | r_needsfree = false; | ||||
| return ob_eval->runtime.mesh_eval; | return mesh_eval; | ||||
| } | } | ||||
| r_needsfree = true; | r_needsfree = true; | ||||
| return BKE_mesh_new_nomain_from_curve(ob_eval); | return BKE_mesh_new_nomain_from_curve(ob_eval); | ||||
| } | } | ||||
| /* ************************************************************************** */ | /* ************************************************************************** */ | ||||
| ▲ Show 20 Lines • Show All 299 Lines • Show Last 20 Lines | |||||