Captalize the UI according to Blender's guideline #1
@ -58,7 +58,7 @@ class VIEW3D_AST_library_assets(bpy.types.AssetShelf):
|
||||
layout.operator("asset.col_link", text="Link and Override").create_override = True
|
||||
layout.separator()
|
||||
if _asset.id_type == 'TEXT':
|
||||
layout.operator("asset.script_execute", text="Run script")
|
||||
layout.operator("asset.script_execute", text="Run Script")
|
||||
layout.separator()
|
||||
layout.operator("asset.open_containing_blend_file")
|
||||
|
||||
@ -116,7 +116,7 @@ class ASSET_OT_col_link(Operator):
|
||||
|
||||
create_override: BoolProperty(name="Create Override", default=False)
|
||||
create_instance: BoolProperty(name="Create Instance", default=False)
|
||||
snap_to_cursor: BoolProperty(name="Snap to 3D cursor", default=True)
|
||||
snap_to_cursor: BoolProperty(name="Snap to 3D Cursor", default=True)
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context: Context):
|
||||
@ -152,7 +152,7 @@ class ASSET_OT_col_link(Operator):
|
||||
class ASSET_OT_script_execute(Operator):
|
||||
bl_idname = "asset.script_execute"
|
||||
bl_label = "Run Script"
|
||||
bl_description = "Runs python script."
|
||||
bl_description = "Runs Python script."
|
||||
bl_options = {'REGISTER', 'UNDO'}
|
||||
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user