Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pose_library/operators.py')
-rw-r--r--pose_library/operators.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pose_library/operators.py b/pose_library/operators.py
index c8c2c070..008aceda 100644
--- a/pose_library/operators.py
+++ b/pose_library/operators.py
@@ -216,7 +216,9 @@ class POSELIB_OT_copy_as_asset(PoseAssetCreator, Operator):
filepath = self.save_datablock(asset)
- functions.asset_clear(context, asset)
+ # The asset has been saved to disk, so to clean up it has to loose its asset & fake user status.
+ asset.asset_clear()
+ asset.use_fake_user = False
if asset.users > 0:
self.report({"ERROR"}, "Unexpected non-null user count for the asset")
return {"FINISHED"}