[Bf-blender-cvs] [921e428] alembic_basic_io: Fix compile error when building without Alembic.

Kévin Dietrich noreply at git.blender.org
Tue Jul 5 06:40:56 CEST 2016


Commit: 921e428998305db088d02740ddb78fe764b5c6f8
Author: Kévin Dietrich
Date:   Tue Jul 5 06:40:03 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB921e428998305db088d02740ddb78fe764b5c6f8

Fix compile error when building without Alembic.

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

M	source/blender/blenkernel/intern/constraint.c

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

diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 72110b1..f525fcb 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -4349,6 +4349,7 @@ static void transformcache_id_looper(bConstraint *con, ConstraintIDFunc func, vo
 
 static void transformcache_evaluate(bConstraint *con, bConstraintOb *cob, ListBase *targets)
 {
+#ifdef WITH_ALEMBIC
 	bTransformCacheConstraint *data = con->data;
 	Scene *scene = cob->scene;
 
@@ -4357,6 +4358,9 @@ static void transformcache_evaluate(bConstraint *con, bConstraintOb *cob, ListBa
 
 	ABC_get_transform(data->cache_file->handle, cob->ob, data->abc_object_path,
 	                  cob->matrix, time, data->cache_file->scale);
+#else
+	UNUSED_VARS(con, cob);
+#endif
 
 	UNUSED_VARS(targets);
 }




More information about the Bf-blender-cvs mailing list