Cleanup: import operator class directly for Python operators
This commit is contained in:
@@ -20,13 +20,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import bpy
|
||||
from bpy.types import Operator
|
||||
|
||||
from bpy_extras.asset_utils import (
|
||||
SpaceAssetInfo,
|
||||
)
|
||||
|
||||
|
||||
class ASSET_OT_tag_add(bpy.types.Operator):
|
||||
class ASSET_OT_tag_add(Operator):
|
||||
"""Add a new keyword tag to the active asset"""
|
||||
|
||||
bl_idname = "asset.tag_add"
|
||||
@@ -44,7 +45,7 @@ class ASSET_OT_tag_add(bpy.types.Operator):
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
class ASSET_OT_tag_remove(bpy.types.Operator):
|
||||
class ASSET_OT_tag_remove(Operator):
|
||||
"""Remove an existing keyword tag from the active asset"""
|
||||
|
||||
bl_idname = "asset.tag_remove"
|
||||
|
||||
Reference in New Issue
Block a user