diff --git a/import_planes/core.py b/import_planes/core.py index c37be1e..7b63bb8 100644 --- a/import_planes/core.py +++ b/import_planes/core.py @@ -155,4 +155,4 @@ def import_planes(images, import_type='GPENCIL', mode='REPLACE', image_size=None far_plane += 2 - reload_bg_list(scene=scn) \ No newline at end of file + \ No newline at end of file diff --git a/import_planes/operators.py b/import_planes/operators.py index 4c66d3c..ad63d94 100644 --- a/import_planes/operators.py +++ b/import_planes/operators.py @@ -18,7 +18,7 @@ from pathlib import Path from .. import core from .. constants import * from .. export_psd_layers import export_psd_bg -from . core import import_planes, get_json_infos +from . core import import_planes, get_json_infos, reload_bg_list @@ -113,7 +113,7 @@ class BPM_OT_import_bg_images(bpy.types.Operator, ImportHelper): ## list of Tuples : [(plane_object, img_data, transparency_value), ...] import_planes(file_list, import_type=self.import_type, image_size=org_image_size) - + reload_bg_list(scene=scn) return {"FINISHED"}