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 Jul 30, 2023
2 parents 1d76f18 + af35a52 commit 42f33d5
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ body:
- 2.5.0
- 2.6.0
- 2.7.0
- 2.7.1
- 2.8.0
validations:
required: true
- type: dropdown
Expand All @@ -57,6 +59,7 @@ body:
- 3.5.0
- 3.5.1
- 3.6.0
- 3.6.1
- edge
- type: textarea
id: logs
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ v2.0.0 supports the following versions of Blender:
- Blender 3.5.0 (x64 - Windows)
- Blender 3.5.1 (x64 - Windows)
- Blender 3.6.0 (x64 - Windows)
- Blender 3.6.1 (x64 - Windows)

## Installation

Expand Down
9 changes: 6 additions & 3 deletions src/blender-extension/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@
"author": "Natsuneko",
"description": "Blender add-on for import some files from drag-and-drop",
"blender": (3, 1, 0),
"version": (2, 7, 0),
"version": (2, 8, 0),
"location": "Drag and Drop Support",
"warning": "",
"category": "Import-Export"
"category": "Import-Export",
}


if "bpy" in locals():
import importlib

importlib.reload(operator)
importlib.reload(properties)
importlib.reload(ui)
Expand Down Expand Up @@ -58,7 +59,8 @@ def register():
bpy.utils.register_class(c)

bpy.types.Scene.DragAndDropSupportProperties = PointerProperty(
type=properties.DragAndDropSupportProperties)
type=properties.DragAndDropSupportProperties
)

import os

Expand All @@ -78,6 +80,7 @@ def unregister():
del bpy.types.Scene.DragAndDropSupportProperties

import _ctypes

_ctypes.FreeLibrary(dll._handle)


Expand Down
13 changes: 11 additions & 2 deletions src/blender-injection/BlenderPatchPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ struct BlenderPatchPattern
// XXX: LEA RDX, QWORD PTR [RSP+30H] // RDX = ptr:[addon_utils, NULL]
// XXX: MOV RCX, RSI // RCX = ptr:C
// XXX: CALL 00007FF61FF9E3A0H <- here // BPY_run_string_eval(RCX, RDX, R8)
// XXX: CALL 00007FF61FF9E3C0H //
//
//
// FUNCTION LOCATION - view3d_ima_empty_drop_poll / view3d_id_path_drop_copy (search: "OBJECT_OT_drop_named_image" as ANSI string)
Expand Down Expand Up @@ -216,8 +217,16 @@ static std::unordered_map<std::string, BlenderPatchPattern> Patchers{
},
{
"3.6.0", {
"E8 FC 8F 41 00 E8 C7 AD 22 04", // CALL and CALL
// "E8 DE 2F 41 00 40 84 F6", // CALL and TEST
"E8 FC 8F 41 00 E8 C7 AD 22 04",
"4C 8D 05 F9 07 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0"
}
},
{

"3.6.1", {
"E8 AC 90 41 00 E8 B7 AA 22 04",
"4C 8D 05 F9 07 00 00",
"E8 7B FF FF FF 84 C0",
"E8 EB BD 00 00 48 85 C0"
Expand Down

0 comments on commit 42f33d5

Please sign in to comment.