From d5bac0421f1712fa079dd5065848691a5a47733b Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Wed, 30 Aug 2023 16:18:53 +0200 Subject: [PATCH] Fix warning print when running asset shelf UI template Was printing the following warning: Warning: 'MyAssetShelf' does not contain '_AST_' with prefix and suffix I followed some other template for the naming, apparently the "Ui Tool Simple" one, but that doesn't print the warning. --- scripts/templates_py/ui_asset_shelf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/templates_py/ui_asset_shelf.py b/scripts/templates_py/ui_asset_shelf.py index 43c02f8bf14..f35b6225c12 100644 --- a/scripts/templates_py/ui_asset_shelf.py +++ b/scripts/templates_py/ui_asset_shelf.py @@ -3,7 +3,7 @@ import bpy class MyAssetShelf(bpy.types.AssetShelf): bl_space_type = 'VIEW_3D' - bl_idname = "my_template.my_material_asset_shelf" + bl_idname = "VIEW3D_AST_my_asset_shelf" @classmethod def poll(cls, context):