Library Overrides: Unlink instance empty after "Make Library Override"
Unlink (delete if single-user) collection instance empty once an override is added to the collection through the "Make Library Override" operator. It isn't used as a collection instance anymore then so the emtpy is an annoying left over that has no purpose. Part of T76555. Reviewed by: Andy Goralczyk, Bastien Montange. Differential Revision: https://developer.blender.org/D7626
This commit is contained in:
parent
cdf0d95a50
commit
1743326889
Notes:
blender-bot
2023-02-14 08:33:26 +01:00
Referenced by issue #73318, Library overrides
|
@ -2546,9 +2546,9 @@ static int make_override_library_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
FOREACH_COLLECTION_OBJECT_RECURSIVE_END;
|
||||
|
||||
/* obcollection is no more duplicollection-ing,
|
||||
* it merely parents whole collection of overriding instantiated objects. */
|
||||
obcollection->instance_collection = NULL;
|
||||
/* Remove the instance empty from this scene, the items now have an overriden collection
|
||||
* instead. */
|
||||
ED_object_base_free_and_unlink(bmain, scene, obcollection);
|
||||
|
||||
/* Also, we'd likely want to lock by default things like
|
||||
* transformations of implicitly overridden objects? */
|
||||
|
|
Loading…
Reference in New Issue