[Bf-extensions-cvs] [5153c737] master: AnimAll: Store properties in scene so they are saved on the blend file
Daniel Salazar
noreply at git.blender.org
Sat Jun 18 09:57:30 CEST 2022
Commit: 5153c7377a3cc01bdc471d9ac276f0c1f7758151
Author: Daniel Salazar
Date: Sat Jun 18 01:57:19 2022 -0600
Branches: master
https://developer.blender.org/rBA5153c7377a3cc01bdc471d9ac276f0c1f7758151
AnimAll: Store properties in scene so they are saved on the blend file
===================================================================
M animation_animall.py
===================================================================
diff --git a/animation_animall.py b/animation_animall.py
index 897210d8..06e5f7df 100644
--- a/animation_animall.py
+++ b/animation_animall.py
@@ -3,7 +3,7 @@
bl_info = {
"name": "AnimAll",
"author": "Daniel Salazar (ZanQdo), Damien Picard (pioverfour)",
- "version": (0, 9, 3),
+ "version": (0, 9, 4),
"blender": (3, 3, 0),
"location": "3D View > Toolbox > Animation tab > AnimAll",
"description": "Allows animation of mesh, lattice, curve and surface data",
@@ -137,7 +137,7 @@ class VIEW3D_PT_animall(Panel):
def draw(self, context):
obj = context.active_object
- animall_properties = obj.animall_properties
+ animall_properties = context.scene.animall_properties
layout = self.layout
@@ -233,7 +233,7 @@ class ANIM_OT_insert_keyframe_animall(Operator):
bl_options = {'REGISTER', 'UNDO'}
def execute(op, context):
- animall_properties = context.window_manager.animall_properties
+ animall_properties = context.scene.animall_properties
if context.mode == 'OBJECT':
objects = context.selected_objects
@@ -416,7 +416,7 @@ class ANIM_OT_delete_keyframe_animall(Operator):
def execute(op, context):
- animall_properties = context.window_manager.animall_properties
+ animall_properties = context.scene.animall_properties
if context.mode == 'OBJECT':
objects = context.selected_objects
@@ -643,7 +643,7 @@ class AnimallAddonPreferences(AddonPreferences):
def register():
bpy.utils.register_class(AnimallProperties)
- bpy.types.Object.animall_properties = bpy.props.PointerProperty(type=AnimallProperties)
+ bpy.types.Scene.animall_properties = bpy.props.PointerProperty(type=AnimallProperties)
bpy.utils.register_class(VIEW3D_PT_animall)
bpy.utils.register_class(ANIM_OT_insert_keyframe_animall)
bpy.utils.register_class(ANIM_OT_delete_keyframe_animall)
@@ -654,7 +654,7 @@ def register():
def unregister():
- del bpy.types.Object.animall_properties
+ del bpy.types.Scene.animall_properties
bpy.utils.unregister_class(AnimallProperties)
bpy.utils.unregister_class(VIEW3D_PT_animall)
bpy.utils.unregister_class(ANIM_OT_insert_keyframe_animall)
More information about the Bf-extensions-cvs
mailing list