diff options
Diffstat (limited to 'io_import_scene_unreal_psa_psk.py')
-rw-r--r-- | io_import_scene_unreal_psa_psk.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_import_scene_unreal_psa_psk.py b/io_import_scene_unreal_psa_psk.py index 26fab899..81af56f2 100644 --- a/io_import_scene_unreal_psa_psk.py +++ b/io_import_scene_unreal_psa_psk.py @@ -428,7 +428,7 @@ def pskimport(infile,importmesh,importbone,bDebugLogPSK,importmultiuvtextures): i.select_set(False) #deselect all objects ob_new.select_set(True) #set current armature to edit the bone - bpy.context.scene.objects.active = ob_new + bpy.context.view_layer.objects.active = ob_new #set mode to able to edit the bone if bpy.ops.object.mode_set.poll(): bpy.ops.object.mode_set(mode='EDIT') |