Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mika-f committed Nov 30, 2023
2 parents 22b907c + 316810f commit 3cbf980
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ body:
- 2.10.0
- 2.11.0
- 2.12.0
- 2.12.1
validations:
required: true
- type: dropdown
Expand Down
2 changes: 1 addition & 1 deletion src/blender-extension/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Natsuneko",
"description": "Blender add-on for import some files from drag-and-drop",
"blender": (3, 1, 0),
"version": (2, 12, 0),
"version": (2, 12, 1),
"location": "Drag and Drop Support",
"warning": "",
"category": "Import-Export",
Expand Down
2 changes: 1 addition & 1 deletion src/blender-extension/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def invoke(self, context: Context, event: Event):
path = self.filename
_, ext = os.path.splitext(path)

importer = import_dic.get(ext, lambda w: print("unknown file"))
importer = import_dic.get(ext.lower(), lambda w: print("unknown file"))

props: DragAndDropSupportProperties = context.scene.DragAndDropSupportProperties

Expand Down
4 changes: 3 additions & 1 deletion src/blender-injection/extern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const char* GetDropFilePath(void* pUnknown)
bool ShouldTriggerDropEvent(const char* w)
{
const std::filesystem::path path(w);
const auto extension = path.extension();
auto extension = path.extension().string();

std::ranges::transform(extension, extension.begin(), tolower);

if (const auto ref = std::ranges::find(SUPPORTED_FORMATS, extension); ref != std::end(SUPPORTED_FORMATS))
return true;
Expand Down

0 comments on commit 3cbf980

Please sign in to comment.