Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-21 12:04:47 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-21 15:11:49 +0300
commit099816587a0e064fb6a52c82a737ae8814cf21df (patch)
tree250508ab6196323c32bfec0ab516f5b8f0fff2e5 /source/blender/alembic/intern/abc_transform.cc
parentdf84082c70dafde0aa3a6a474f7885788e507ae1 (diff)
Alembic: Construct ISampleSelector once and pass along
No longer passing time as float and constructing ISampleSelectors all over the place. Instead, just construct an ISampleSelector once and pass it along.
Diffstat (limited to 'source/blender/alembic/intern/abc_transform.cc')
-rw-r--r--source/blender/alembic/intern/abc_transform.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_transform.cc b/source/blender/alembic/intern/abc_transform.cc
index 6e218cac429..c48be361877 100644
--- a/source/blender/alembic/intern/abc_transform.cc
+++ b/source/blender/alembic/intern/abc_transform.cc
@@ -36,6 +36,7 @@ extern "C" {
using Alembic::AbcGeom::OObject;
using Alembic::AbcGeom::OXform;
+using Alembic::Abc::ISampleSelector;
/* ************************************************************************** */
@@ -153,7 +154,7 @@ bool AbcEmptyReader::valid() const
return m_schema.valid();
}
-void AbcEmptyReader::readObjectData(Main *bmain, float /*time*/)
+void AbcEmptyReader::readObjectData(Main *bmain, const ISampleSelector &UNUSED(sample_sel))
{
m_object = BKE_object_add_only_object(bmain, OB_EMPTY,
m_object_name.c_str());