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 'io_anim_acclaim/__init__.py')
-rw-r--r--io_anim_acclaim/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_anim_acclaim/__init__.py b/io_anim_acclaim/__init__.py
index bafdb2bc..5aaaa5ad 100644
--- a/io_anim_acclaim/__init__.py
+++ b/io_anim_acclaim/__init__.py
@@ -183,9 +183,9 @@ class StructureBuilder(DataStructure):
"""
Create the armature and leave it in edit mode
"""
- bpy.context.scene.objects.active = None
+ bpy.context.view_layer.objects.active = None
bpy.ops.object.add(type='ARMATURE', enter_editmode=True)
- self.object = bpy.context.scene.objects.active
+ self.object = bpy.context.view_layer.objects.active
self.armature = self.object.data
self.object.name = self.name
self.armature.name = self.name