Blender Crawl: During Purge Remove Fake User for Linked Data-Blocks #105

Merged
Nick Alberelli merged 1 commits from Mets/blender-studio-pipeline:better-purge into main 2023-07-12 17:45:18 +02:00
Member

...and collections.

I believe this should be built-in Blender behaviour, but it's already on the devs' radar, and in the meantime we have a production that will need to be cleaned up soon.

To explain a bit better, here's what can happen sometimes:

  • You have an ID with a fake user in an asset (usually a collection)
  • You link the asset to a shot
  • You change your mind, and don't want the asset in the shot anymore; You might Un-link it from the Scene instead of "Delete Hierarchy".
  • Now its collections have no real users left
  • You run Purge and expect it to go away from the file
  • It does not, because it has a fake user flag.

Even though obviously that fake user flag's intention was to keep the ID in the original file, not when it gets linked in somewhere else. Not to mention that people don't realize that Collections have the fake user flag set to True by default, since it's not visible anywhere.

Tested on Pets shots 50_70, 50_80, 50_90, 50_100.

...and collections. I believe this should be built-in Blender behaviour, but it's already on the [devs' radar](https://projects.blender.org/blender/blender/issues/106321), and in the meantime we have a production that will need to be cleaned up soon. To explain a bit better, here's what can happen sometimes: - You have an ID with a fake user in an asset (usually a collection) - You link the asset to a shot - You change your mind, and don't want the asset in the shot anymore; You might Un-link it from the Scene instead of "Delete Hierarchy". - Now its collections have no real users left - You run Purge and expect it to go away from the file - It does not, because it has a fake user flag. Even though obviously that fake user flag's intention was to keep the ID in the **original** file, not when it gets linked in somewhere else. Not to mention that people don't realize that Collections have the fake user flag set to True by default, since it's not visible *anywhere*. Tested on Pets shots 50_70, 50_80, 50_90, 50_100.
Demeter Dzadik added 1 commit 2023-07-10 11:01:39 +02:00
Nick Alberelli changed title from Blender Purge: use_fake_user=False for linked IDs to Blender Crawl: use_fake_user=False for linked IDs 2023-07-10 22:20:56 +02:00
Nick Alberelli changed title from Blender Crawl: use_fake_user=False for linked IDs to Blender Crawl: Remove Fake User for Linked Data-Blocks 2023-07-12 17:44:03 +02:00
Nick Alberelli changed title from Blender Crawl: Remove Fake User for Linked Data-Blocks to Blender Crawl: During Purge Remove Fake User for Linked Data-Blocks 2023-07-12 17:44:16 +02:00
Nick Alberelli merged commit 72742525a0 into main 2023-07-12 17:45:18 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio-tools#105
No description provided.