move reload_bg_list in operator
parent
11029606df
commit
06acffd540
|
@ -155,4 +155,4 @@ def import_planes(images, import_type='GPENCIL', mode='REPLACE', image_size=None
|
||||||
|
|
||||||
far_plane += 2
|
far_plane += 2
|
||||||
|
|
||||||
reload_bg_list(scene=scn)
|
|
|
@ -18,7 +18,7 @@ from pathlib import Path
|
||||||
from .. import core
|
from .. import core
|
||||||
from .. constants import *
|
from .. constants import *
|
||||||
from .. export_psd_layers import export_psd_bg
|
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), ...]
|
## list of Tuples : [(plane_object, img_data, transparency_value), ...]
|
||||||
|
|
||||||
import_planes(file_list, import_type=self.import_type, image_size=org_image_size)
|
import_planes(file_list, import_type=self.import_type, image_size=org_image_size)
|
||||||
|
reload_bg_list(scene=scn)
|
||||||
|
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue