diff --git a/README.md b/README.md index 5a9b16d..0e1f640 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# BlenDir v0.17.0 +# BlenDir v0.17.1 **BlenDir** is a Blender add-on for automatic folder structure creation and management! diff --git a/__init__.py b/__init__.py index e854dc2..fd0d64c 100644 --- a/__init__.py +++ b/__init__.py @@ -18,7 +18,7 @@ "author": "Daniel Boxer", "description": "Automatic folder structure", "blender": (2, 90, 0), - "version": (0, 17, 0), + "version": (0, 17, 1), "location": "View3D > Sidebar > BlenDir", "category": "System", "doc_url": "https://github.com/DanielBoxer/BlenDir#readme", diff --git a/blendir_main.py b/blendir_main.py index 6d98322..888b380 100644 --- a/blendir_main.py +++ b/blendir_main.py @@ -402,9 +402,10 @@ def open_bookmarks(): def get_references(): - ref_path = pathlib.Path(bpy.context.scene.blendir_props.reference_path) + ref_path = bpy.context.scene.blendir_props.reference_path references = [] if ref_path != "": + ref_path = pathlib.Path(ref_path) for ref in os.listdir(ref_path): if (ref_path / ref).is_file(): references.append(ref) diff --git a/blendir_ui.py b/blendir_ui.py index 5f5da96..ad9ce53 100644 --- a/blendir_ui.py +++ b/blendir_ui.py @@ -128,8 +128,11 @@ class BLENDIR_MT_references(Menu): def draw(self, context): pie = self.layout.menu_pie() for ref_idx, ref in enumerate(get_references()[0]): - pie.operator( - "blendir.reference", - text=ref, - icon="FUND", - ).reference = str(ref_idx) + if ref_idx < 8: + pie.operator( + "blendir.reference", + text=ref, + icon="FUND", + ).reference = str(ref_idx) + else: + break