Fix: ensure loaded path is folder and not file #104812
@ -13,7 +13,6 @@
|
||||
#---------------------------------------------#
|
||||
import bpy
|
||||
import os
|
||||
from bpy.props import *
|
||||
|
||||
# addon description
|
||||
bl_info = {
|
||||
@ -145,16 +144,14 @@ classes = (
|
||||
|
||||
|
||||
def register():
|
||||
from bpy.utils import register_class
|
||||
for cls in classes:
|
||||
register_class(cls)
|
||||
bpy.utils.register_class(cls)
|
||||
bpy.types.TOPBAR_MT_file_import.append(menu_func)
|
||||
|
||||
|
||||
def unregister():
|
||||
from bpy.utils import unregister_class
|
||||
for cls in reversed(classes):
|
||||
unregister_class(cls)
|
||||
bpy.utils.unregister_class(cls)
|
||||
bpy.types.TOPBAR_MT_file_import.remove(menu_func)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user