[Bf-blender-cvs] [2366663] alembic_pointcache: Removed unused (and broken) functions for getting the number of written cache samples.
Lukas Tönne
noreply at git.blender.org
Tue Feb 17 17:48:43 CET 2015
Commit: 2366663ebb3f3c589c5578d4c879b6e39e41c182
Author: Lukas Tönne
Date: Tue Feb 17 17:47:45 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB2366663ebb3f3c589c5578d4c879b6e39e41c182
Removed unused (and broken) functions for getting the number of written
cache samples.
This can be done more reliably using Alembic schemas.
===================================================================
M source/blender/pointcache/alembic/abc_writer.cpp
M source/blender/pointcache/alembic/abc_writer.h
===================================================================
diff --git a/source/blender/pointcache/alembic/abc_writer.cpp b/source/blender/pointcache/alembic/abc_writer.cpp
index addd311..8ab9ac1 100644
--- a/source/blender/pointcache/alembic/abc_writer.cpp
+++ b/source/blender/pointcache/alembic/abc_writer.cpp
@@ -67,14 +67,4 @@ TimeSamplingPtr AbcWriterArchive::frame_sampling()
return archive.getTimeSampling(m_frame_sampling);
}
-int AbcWriterArchive::num_samples()
-{
- return (int)frame_sampling()->getNumStoredTimes();
-}
-
-bool AbcWriterArchive::has_samples()
-{
- return frame_sampling()->getNumStoredTimes() > 0;
-}
-
} /* namespace PTC */
diff --git a/source/blender/pointcache/alembic/abc_writer.h b/source/blender/pointcache/alembic/abc_writer.h
index 2689568..a7eee1d 100644
--- a/source/blender/pointcache/alembic/abc_writer.h
+++ b/source/blender/pointcache/alembic/abc_writer.h
@@ -45,9 +45,6 @@ public:
uint32_t frame_sampling_index() const { return m_frame_sampling; }
Abc::TimeSamplingPtr frame_sampling();
- int num_samples();
- bool has_samples();
-
Abc::OArchive archive;
protected:
More information about the Bf-blender-cvs
mailing list