Option to disable audio module
This commit is contained in:
parent
034a832bf9
commit
bb41f829c6
|
@ -102,6 +102,10 @@ def init_properties():
|
|||
items = [('Disabled', 'Disabled', 'Disabled'),
|
||||
('Enabled', 'Enabled', 'Enabled')],
|
||||
name = "Hscript", default='Disabled', description="Include Hscript library")
|
||||
bpy.types.World.arm_audio = EnumProperty(
|
||||
items = [('Disabled', 'Disabled', 'Disabled'),
|
||||
('Enabled', 'Enabled', 'Enabled')],
|
||||
name = "Audio", default='Enabled')
|
||||
bpy.types.World.arm_khafile = StringProperty(name="Khafile", description="Source appended to khafile.js", update=invalidate_compiler_cache)
|
||||
bpy.types.World.arm_khamake = StringProperty(name="Khamake", description="Command line params appended to khamake", update=invalidate_compiler_cache)
|
||||
bpy.types.World.arm_texture_quality = bpy.props.FloatProperty(name="Texture Quality", default=1.0, min=0.0, max=1.0, subtype='FACTOR', update=invalidate_compiler_cache)
|
||||
|
|
|
@ -461,6 +461,7 @@ class ArmoryProjectPanel(bpy.types.Panel):
|
|||
|
||||
layout.separator()
|
||||
layout.label('Modules:')
|
||||
layout.prop(wrd, 'arm_audio')
|
||||
layout.prop(wrd, 'arm_physics')
|
||||
layout.prop(wrd, 'arm_navigation')
|
||||
layout.prop(wrd, 'arm_ui')
|
||||
|
|
|
@ -75,6 +75,9 @@ project.addSources('Sources');
|
|||
if os.path.isdir('Libraries/' + lib):
|
||||
f.write('project.addLibrary("{0}");\n'.format(lib))
|
||||
|
||||
if wrd.arm_audio == 'Disabled':
|
||||
assets.add_khafile_def('arm_no_audio')
|
||||
|
||||
if export_physics:
|
||||
assets.add_khafile_def('arm_physics')
|
||||
if wrd.arm_physics == 'Bullet':
|
||||
|
|
Loading…
Reference in a new issue