Skip to content

Commit e11337e

Browse files
authored
Update __init__.py
Updated to fix position of menu item
1 parent 09bba48 commit e11337e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

__init__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# https://github.com/SimonHeggie/Blender-GatherResources/issues
1919
#
2020
# If this program operates interactively, it should output the following:
21-
#
21+
#
2222
# Gather Resources Copyright (C) 2024 Simon Heggie
2323
# This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
2424
# This is free software, and you are welcome to redistribute it
@@ -30,7 +30,7 @@
3030
"name": "Gather Resources",
3131
"blender": (4, 2, 0),
3232
"category": "File",
33-
"version": (0, 3, 0, "alpha"),
33+
"version": (0, 3, 1, "alpha"),
3434
"author": "Simon Heggie",
3535
"description": "Gathers all resources used in the project and copies them to a local textures folder.",
3636
"location": "File > External Data",
@@ -138,8 +138,7 @@ def menu_func(self, context):
138138

139139
def register():
140140
bpy.utils.register_class(GatherResourcesOperator)
141-
bpy.types.TOPBAR_MT_file_external_data.append(menu_func)
142-
141+
bpy.types.TOPBAR_MT_file_external_data.prepend(menu_func) # Use prepend to insert at the top
143142

144143
def unregister():
145144
bpy.utils.unregister_class(GatherResourcesOperator)

0 commit comments

Comments
 (0)