Skip to content

Commit 83e3398

Browse files
author
Nozomi Miyamori
committed
release version 2.0.1
* Minor file dialog handling improvement
1 parent f831936 commit 83e3398

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/ninja_gaiden_tmc/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ class SelectTMCLImportTMC(Operator, ImportHelper):
2929
default="*.tmcl;*.dat",
3030
options={'SKIP_SAVE', 'HIDDEN'},
3131
)
32+
directory: StringProperty(subtype='DIR_PATH')
3233

33-
tmc_path: StringProperty()
34+
tmc_path: StringProperty(
35+
subtype='FILE_PATH',
36+
default='',
37+
options={'SKIP_SAVE', 'HIDDEN'}
38+
)
3439

3540
def execute(self, context):
3641
if not self.tmc_path:
@@ -52,9 +57,10 @@ class ImportTMCEntry(Operator, ImportHelper):
5257
default="*.tmc;*.dat",
5358
options={'SKIP_SAVE', 'HIDDEN'},
5459
)
60+
directory: StringProperty(subtype='DIR_PATH')
5561

5662
def execute(self, context):
57-
return bpy.ops.ninja_gaiden_tmc.select_tmcl_import_tmc('INVOKE_DEFAULT', tmc_path=self.filepath)
63+
return bpy.ops.ninja_gaiden_tmc.select_tmcl_import_tmc('INVOKE_DEFAULT', tmc_path=self.filepath, directory=self.directory)
5864

5965
def mmap_open(path):
6066
with open(path, 'rb') as f:

src/ninja_gaiden_tmc/blender_manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
schema_version = "1.0.0"
22

33
id = "ninja_gaiden_tmc"
4-
version = "2.0.0"
4+
version = "2.0.1"
55
name = "Ninja Gaiden Sigma 2 TMC Format"
66
tagline = "Import Ninja Gaiden Sigma 2 TMC"
77
maintainer = "Nozomi Miyamori"

0 commit comments

Comments
 (0)