File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Rust_lib
2
2
3
3
on :
4
- push :
5
- branches : [ "main" ]
4
+ # push:
5
+ # branches: [ "main" ]
6
6
release :
7
7
types :
8
8
- created
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ def VIEW3D_MT_collision_menu_item(self, context):
205
205
206
206
def register ():
207
207
bpy .utils .register_class (OBJECT_OT_hallr_collision )
208
- bpy .types .VIEW3D_MT_mesh_add .append (VIEW3D_MT_collision_menu_item )
208
+ bpy .types .VIEW3D_MT_object_convert .append (VIEW3D_MT_collision_menu_item )
209
209
210
210
211
211
def unregister ():
@@ -214,10 +214,10 @@ def unregister():
214
214
except (RuntimeError , NameError ):
215
215
pass
216
216
217
- bpy .types .VIEW3D_MT_mesh_add .remove (VIEW3D_MT_collision_menu_item )
218
- for f in bpy .types .VIEW3D_MT_mesh_add ._dyn_ui_initialize ():
217
+ bpy .types .VIEW3D_MT_object_convert .remove (VIEW3D_MT_collision_menu_item )
218
+ for f in bpy .types .VIEW3D_MT_object_convert ._dyn_ui_initialize ():
219
219
if f .__name__ == VIEW3D_MT_collision_menu_item .__name__ :
220
- bpy .types .VIEW3D_MT_mesh_add .remove (f )
220
+ bpy .types .VIEW3D_MT_object_convert .remove (f )
221
221
222
222
223
223
if __name__ == "__main__" :
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ class ProcessResult(ctypes.Structure):
32
32
33
33
34
34
system = platform .system ()
35
- library_extension = ".dylib" # Default to macOS
35
+ library_name = "libhallr .dylib" # Default to macOS
36
36
if system == "Linux" :
37
- library_extension = ".so"
37
+ library_name = "libhallr .so"
38
38
elif system == "Windows" :
39
- library_extension = ".dll"
39
+ library_name = "hallr .dll"
40
40
41
- rust_lib = ctypes .cdll .LoadLibrary ("./blender_addon_exported/lib/libhallr " + library_extension )
41
+ rust_lib = ctypes .cdll .LoadLibrary ("./blender_addon_exported/lib/" + library_name )
42
42
rust_lib .process_geometry .argtypes = [ctypes .POINTER (Vector3 ), ctypes .c_size_t ,
43
43
ctypes .POINTER (ctypes .c_size_t ), ctypes .c_size_t ,
44
44
ctypes .POINTER (StringMap )]
You can’t perform that action at this time.
0 commit comments