Fix assert setting fake user then removing

This commit is contained in:
Campbell Barton 2018-11-02 16:22:45 +11:00
parent 37fc52cbc6
commit 5bd3f3e64b
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ bool id_single_user(bContext *C, ID *id, PointerRNA *ptr, PropertyRNA *prop)
BKE_animdata_copy_id_action(bmain, id, false);
/* us is 1 by convention, but RNA_property_pointer_set
* will also increment it, so set it to zero */
newid->us = 0;
newid->us = ID_FAKE_USERS(newid);
/* assign copy */
RNA_id_pointer_create(newid, &idptr);