make_world callback

This commit is contained in:
luboslenco 2019-05-24 15:21:22 +02:00
parent bde6cfa76f
commit 585abb1b90
2 changed files with 7 additions and 0 deletions

View file

@ -101,6 +101,8 @@ def export_data(fp, sdk_path):
ui_found = False
ArmoryExporter.compress_enabled = state.is_publish and wrd.arm_asset_compression
ArmoryExporter.optimize_enabled = state.is_publish and wrd.arm_optimize_data
if not os.path.exists(build_dir + '/compiled/Assets'):
os.makedirs(build_dir + '/compiled/Assets')
for scene in bpy.data.scenes:
if scene.arm_export:
ext = '.zip' if ArmoryExporter.compress_enabled else '.arm'

View file

@ -9,6 +9,8 @@ import arm.node_utils as node_utils
import arm.log as log
import arm.make_state as state
callback = None
def build():
worlds = []
for scene in bpy.data.scenes:
@ -22,6 +24,9 @@ def build_node_tree(world):
wrd.world_defs = ''
rpdat = arm.utils.get_rp()
if callback != None:
callback()
# Traverse world node tree
parsed = False
if world.node_tree != None: