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

This commit is contained in:
Joshua Leung
2014-06-16 21:59:42 +12:00
parent 74f2e7fbc7
commit eb6e05b2ce

View File

@@ -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;
}