Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/alembic/intern/abc_reader_curves.cc
| Show First 20 Lines • Show All 277 Lines • ▼ Show 20 Lines | |||||
| * passed from the cache modifier contains the displist, which has more data | * passed from the cache modifier contains the displist, which has more data | ||||
| * than the control points, so to avoid corrupting the displist we modify the | * than the control points, so to avoid corrupting the displist we modify the | ||||
| * object directly and create a new Mesh from that. Also we might need to | * object directly and create a new Mesh from that. Also we might need to | ||||
| * create new or delete existing NURBS in the curve. | * create new or delete existing NURBS in the curve. | ||||
| */ | */ | ||||
| Mesh *AbcCurveReader::read_mesh(Mesh *existing_mesh, | Mesh *AbcCurveReader::read_mesh(Mesh *existing_mesh, | ||||
| const ISampleSelector &sample_sel, | const ISampleSelector &sample_sel, | ||||
| int /*read_flag*/, | int /*read_flag*/, | ||||
| const char * /*velocity_name*/, | |||||
| const float /*velocity_scale*/, | |||||
| const char **err_str) | const char **err_str) | ||||
| { | { | ||||
| ICurvesSchema::Sample sample; | ICurvesSchema::Sample sample; | ||||
| try { | try { | ||||
| sample = m_curves_schema.getValue(sample_sel); | sample = m_curves_schema.getValue(sample_sel); | ||||
| } | } | ||||
| catch (Alembic::Util::Exception &ex) { | catch (Alembic::Util::Exception &ex) { | ||||
| ▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines | |||||