move reload_bg_list in operator

master
ChristopheSeux 2023-09-28 15:24:45 +02:00
parent 11029606df
commit 06acffd540
2 changed files with 3 additions and 3 deletions

View File

@ -155,4 +155,4 @@ def import_planes(images, import_type='GPENCIL', mode='REPLACE', image_size=None
far_plane += 2
reload_bg_list(scene=scn)

View File

@ -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"}