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:
authorDaniel Salazar <zanqdo@gmail.com>2022-06-18 10:57:19 +0300
committerDaniel Salazar <zanqdo@gmail.com>2022-06-18 10:57:19 +0300
commit5153c7377a3cc01bdc471d9ac276f0c1f7758151 (patch)
tree15864c3fe815dea75e73a577572bceb29a15b79b
parentea96c101ef12dda105c3ac9d440415b4209ca923 (diff)
AnimAll: Store properties in scene so they are saved on the blend file
-rw-r--r--animation_animall.py12
1 files changed, 6 insertions, 6 deletions
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)