update bg images operator
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import bpy
|
||||
from . import operators
|
||||
|
||||
modules = (
|
||||
@@ -6,8 +7,8 @@ modules = (
|
||||
|
||||
def register():
|
||||
for module in modules:
|
||||
bpy.utils.register_class(module)
|
||||
module.register()
|
||||
|
||||
def unregister():
|
||||
for module in reversed(modules):
|
||||
bpy.utils.unregister_class(module)
|
||||
module.unregister()
|
||||
|
||||
@@ -22,8 +22,6 @@ from . core import import_planes, get_json_infos, reload_bg_list
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class BPM_OT_import_bg_images(bpy.types.Operator, ImportHelper):
|
||||
bl_idname = "bpm.import_bg_images"
|
||||
bl_label = "Import Background images"
|
||||
@@ -66,6 +64,10 @@ class BPM_OT_import_bg_images(bpy.types.Operator, ImportHelper):
|
||||
# ('PURGE', 'Purge', 'When object exists, fully delete it before linking, even associated collection and holder', 2),
|
||||
))
|
||||
|
||||
# import_psd_as_image : BoolProperty(name='Import PSD as Image (no content extraction)',
|
||||
# description='Direct import of the PSD, otherwise extract using psd_tools'
|
||||
# default=False)
|
||||
|
||||
def execute(self, context):
|
||||
org_image_size = None
|
||||
scn = context.scene
|
||||
@@ -127,4 +129,4 @@ def register():
|
||||
|
||||
def unregister():
|
||||
for cls in reversed(classes):
|
||||
bpy.utils.unregister_class(cls)
|
||||
bpy.utils.unregister_class(cls)
|
||||
|
||||
Reference in New Issue
Block a user