[Bf-blender-cvs] [092377b] alembic_basic_io: Fix constraint not working with relative paths.
Kévin Dietrich
noreply at git.blender.org
Thu Jun 16 12:54:39 CEST 2016
Commit: 092377bda4f661dc6e832c82fd8ddbac3bff496f
Author: Kévin Dietrich
Date: Thu Jun 16 12:53:54 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB092377bda4f661dc6e832c82fd8ddbac3bff496f
Fix constraint not working with relative paths.
===================================================================
M source/blender/blenkernel/intern/constraint.c
===================================================================
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 881b883..bc0660f 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -4355,7 +4355,10 @@ static void transformcache_evaluate(bConstraint *con, bConstraintOb *cob, ListBa
const float frame = BKE_scene_frame_get(scene);
const float time = BKE_cachefile_time_offset(data->cache_file, frame / FPS);
- ABC_get_transform(cob->ob, data->cache_file->filepath, data->abc_object_path,
+ char filepath[FILE_MAX];
+ BKE_cachefile_filepath_get(scene, data->cache_file, filepath);
+
+ ABC_get_transform(cob->ob, filepath, data->abc_object_path,
cob->matrix, time, data->scale);
UNUSED_VARS(targets);
More information about the Bf-blender-cvs
mailing list