Restricted mats fix

This commit is contained in:
Lubos Lenco 2017-06-18 19:20:20 +02:00
parent 4e2f02d658
commit 32895b4503

View file

@ -22,9 +22,10 @@ def build_node_trees(assets_path):
os.makedirs(arm.utils.build_dir() + '/compiled/Assets/renderpaths')
build_node_trees.assets_path = assets_path
# Always include
assets.add(assets_path + 'brdf.png')
assets.add_embedded_data('brdf.png')
if bpy.data.cameras[0].rp_materials == 'Full':
# Always include
assets.add(assets_path + 'brdf.png')
assets.add_embedded_data('brdf.png')
bpy.data.worlds['Arm'].rp_defs = ''