[Bf-blender-cvs] [0913eef] alembic_basic_io: Fix camera reader not using the right time for sampling.

Kévin Dietrich noreply at git.blender.org
Mon May 30 10:52:56 CEST 2016


Commit: 0913eefbc0822c9f3e961239ca9964240267ee19
Author: Kévin Dietrich
Date:   Mon May 30 10:01:10 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB0913eefbc0822c9f3e961239ca9964240267ee19

Fix camera reader not using the right time for sampling.

===================================================================

M	source/blender/alembic/intern/abc_camera.cc

===================================================================

diff --git a/source/blender/alembic/intern/abc_camera.cc b/source/blender/alembic/intern/abc_camera.cc
index 8f39c41..bacb84c 100644
--- a/source/blender/alembic/intern/abc_camera.cc
+++ b/source/blender/alembic/intern/abc_camera.cc
@@ -128,11 +128,11 @@ void AbcCameraReader::readObjectData(Main *bmain, Scene *scene, float time)
 {
 	Camera *bcam = static_cast<Camera *>(BKE_camera_add(bmain, "abc_camera"));
 
-	ISampleSelector sample_sel(0.0f);
+	ISampleSelector sample_sel(time);
 	CameraSample cam_sample;
 	m_schema.get(cam_sample, sample_sel);
 
-	ICompoundProperty customDataContainer =  m_schema.getUserProperties();
+	ICompoundProperty customDataContainer = m_schema.getUserProperties();
 
 	if (customDataContainer.valid() &&
 	    customDataContainer.getPropertyHeader("stereoDistance") &&




More information about the Bf-blender-cvs mailing list