mirror of
https://github.com/blender/blender-addons-contrib.git
synced 2025-07-23 00:49:46 +00:00
addons-contrib: view_layer.objects.active syntax update
This commit is contained in:
@ -84,7 +84,7 @@ class KTX_Cleanup(bpy.types.Operator):
|
||||
def execute(self, context):
|
||||
for o in bpy.data.objects:
|
||||
o.select_set(False)
|
||||
context.scene.objects.active = None
|
||||
context.view_layer.objects.active = None
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user