[Bf-blender-cvs] [24a0b332e2a] master: Alembic import: fixed bug interpolating between frames.

Sybren A. Stüvel noreply at git.blender.org
Tue May 30 13:48:23 CEST 2017


Commit: 24a0b332e2a72ec164b1398a4a15be7ec0c5f807
Author: Sybren A. Stüvel
Date:   Tue May 30 13:41:30 2017 +0200
Branches: master
https://developer.blender.org/rB24a0b332e2a72ec164b1398a4a15be7ec0c5f807

Alembic import: fixed bug interpolating between frames.

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

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

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

diff --git a/source/blender/alembic/intern/alembic_capi.cc b/source/blender/alembic/intern/alembic_capi.cc
index cb45ee643cd..5ac73175e5b 100644
--- a/source/blender/alembic/intern/alembic_capi.cc
+++ b/source/blender/alembic/intern/alembic_capi.cc
@@ -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);
 }




More information about the Bf-blender-cvs mailing list