From 6cf2ab895d8ff1eceeadd8a64980f2645a65152b Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Sat, 30 Mar 2024 16:12:34 +0800 Subject: [PATCH] fix: fix unregister error in virtools group - fix del attribute error when unregister virtools group. --- bbp_ng/PROP_virtools_group.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bbp_ng/PROP_virtools_group.py b/bbp_ng/PROP_virtools_group.py index 95e56cb..bdc7823 100644 --- a/bbp_ng/PROP_virtools_group.py +++ b/bbp_ng/PROP_virtools_group.py @@ -405,14 +405,14 @@ def register() -> None: bpy.utils.register_class(BBP_OT_clear_virtools_groups) bpy.utils.register_class(BBP_PT_virtools_groups) - # add into scene metadata + # add into object metadata bpy.types.Object.virtools_groups = bpy.props.CollectionProperty(type = BBP_PG_virtools_group) bpy.types.Object.active_virtools_groups = bpy.props.IntProperty() def unregister() -> None: - # del from scene metadata - del bpy.types.Scene.active_virtools_groups - del bpy.types.Scene.virtools_groups + # del from object metadata + del bpy.types.Object.active_virtools_groups + del bpy.types.Object.virtools_groups bpy.utils.unregister_class(BBP_PT_virtools_groups) bpy.utils.unregister_class(BBP_OT_clear_virtools_groups)