[Bf-blender-cvs] [eb6e05b] master: PoseLib: New pose library actions now have their "id root" setting initialised properly

Joshua Leung noreply at git.blender.org
Thu Jun 19 15:38:44 CEST 2014


Commit: eb6e05b2cecb02e94ed5c9c93b41667c9776a2e2
Author: Joshua Leung
Date:   Mon Jun 16 21:59:42 2014 +1200
https://developer.blender.org/rBeb6e05b2cecb02e94ed5c9c93b41667c9776a2e2

PoseLib: New pose library actions now have their "id root" setting initialised properly

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

M	source/blender/editors/armature/pose_lib.c

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

diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c
index 3f4f720..0b115da 100644
--- a/source/blender/editors/armature/pose_lib.c
+++ b/source/blender/editors/armature/pose_lib.c
@@ -189,7 +189,9 @@ static bAction *poselib_init_new(Object *ob)
 	/* init object's poselib action (unlink old one if there) */
 	if (ob->poselib)
 		id_us_min(&ob->poselib->id);
+		
 	ob->poselib = add_empty_action(G.main, "PoseLib");
+	ob->poselib->idroot = ID_OB;
 	
 	return ob->poselib;
 }




More information about the Bf-blender-cvs mailing list