Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-06-16 13:59:42 +0400
committerJoshua Leung <aligorith@gmail.com>2014-06-19 17:34:33 +0400
commiteb6e05b2cecb02e94ed5c9c93b41667c9776a2e2 (patch)
tree6363e7aa39d44699509281eb1ab2c5279b7585a3 /source/blender/editors/armature
parent74f2e7fbc7f537b963611dbe27a5286c331b801d (diff)
PoseLib: New pose library actions now have their "id root" setting initialised properly
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/pose_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c
index 3f4f720ccdb..0b115da5ff0 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;
}