Fix (IRC-reported) wrong usercount handling of deprecated IPO datablocks.
versionning code would unref those twice... Reported by @ßergey on IRC, thanks!
This commit is contained in:
@@ -1732,8 +1732,7 @@ void do_versions_ipos_to_animato(Main *bmain)
|
|||||||
/* IPO first to take into any non-NLA'd Object Animation */
|
/* IPO first to take into any non-NLA'd Object Animation */
|
||||||
if (ob->ipo) {
|
if (ob->ipo) {
|
||||||
ipo_to_animdata(bmain, id, ob->ipo, NULL, NULL, NULL);
|
ipo_to_animdata(bmain, id, ob->ipo, NULL, NULL, NULL);
|
||||||
|
/* No need to id_us_min ipo ID here, ipo_to_animdata already does it. */
|
||||||
id_us_min(&ob->ipo->id);
|
|
||||||
ob->ipo = NULL;
|
ob->ipo = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1766,7 +1765,7 @@ void do_versions_ipos_to_animato(Main *bmain)
|
|||||||
/* IPO second... */
|
/* IPO second... */
|
||||||
if (ob->ipo) {
|
if (ob->ipo) {
|
||||||
ipo_to_animdata(bmain, id, ob->ipo, NULL, NULL, NULL);
|
ipo_to_animdata(bmain, id, ob->ipo, NULL, NULL, NULL);
|
||||||
id_us_min(&ob->ipo->id);
|
/* No need to id_us_min ipo ID here, ipo_to_animdata already does it. */
|
||||||
ob->ipo = NULL;
|
ob->ipo = NULL;
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user