Alembic import: fixed bug interpolating between frames.

This commit is contained in:
Sybren A. Stüvel 2017-05-30 13:41:30 +02:00
parent 35f4abcf53
commit 24a0b332e2
1 changed files with 3 additions and 1 deletions

View File

@ -944,7 +944,9 @@ DerivedMesh *ABC_read_mesh(CacheReader *reader,
return NULL;
}
ISampleSelector sample_sel(time);
/* kFloorIndex is used to be compatible with non-interpolating
* properties; they use the floor. */
ISampleSelector sample_sel(time, ISampleSelector::kFloorIndex);
return abc_reader->read_derivedmesh(dm, sample_sel, read_flag, err_str);
}