[Bf-blender-cvs] [6c177a7478e] tmp-b28-motionpath-drawing: Copy object animviz settings when doing COW

Joshua Leung noreply at git.blender.org
Fri Jun 1 14:01:43 CEST 2018


Commit: 6c177a7478e37c491b02e77b5de6fac2eba8e30c
Author: Joshua Leung
Date:   Fri Jun 1 13:54:41 2018 +0200
Branches: tmp-b28-motionpath-drawing
https://developer.blender.org/rB6c177a7478e37c491b02e77b5de6fac2eba8e30c

Copy object animviz settings when doing COW

It probably doesn't hurt to do an explicit copy here - it's done for pose too.
However, it still doesn't solve the problem of keyframe labels not showing up
at all on motionpaths from old files.

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

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

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

diff --git a/source/blender/blenkernel/intern/object.c b/source/blender/blenkernel/intern/object.c
index b45033d91e9..c4460d5d909 100644
--- a/source/blender/blenkernel/intern/object.c
+++ b/source/blender/blenkernel/intern/object.c
@@ -1228,6 +1228,7 @@ void BKE_object_copy_data(Main *UNUSED(bmain), Object *ob_dst, const Object *ob_
 	BLI_listbase_clear(&ob_dst->drawdata);
 	BLI_listbase_clear(&ob_dst->pc_ids);
 
+	ob_dst->avs = ob_src->avs;
 	ob_dst->mpath = animviz_copy_motionpath(ob_src->mpath);
 
 	copy_object_lod(ob_dst, ob_src, flag_subdata);



More information about the Bf-blender-cvs mailing list