Patch 5105 by Joshua Leung (Aligorith), slightly modified by me
[blender-staging.git] / source / blender / src / SConscript
index 0663cb01c5d83ad6c5e972f39d593ab1db4bf70e..2e0f632ca85190804d93ff75e911e3c89bf35588 100644 (file)
@@ -20,6 +20,9 @@ incs += ' ' + env['BF_OPENGL_INC']
 
 defs = []
 
+if env['WITH_BF_YAFRAY'] == 0:
+    defs.append('DISABLE_YAFRAY')
+
 if env['WITH_BF_INTERNATIONAL'] == 1:
     incs += ' ../ftfont'
     defs.append('INTERNATIONAL')
@@ -37,8 +40,8 @@ if env['WITH_BF_FFMPEG'] == 1:
     incs += ' ' + env['BF_FFMPEG_INC']
 
 if env['WITH_BF_VERSE']:
-       defs.append('WITH_VERSE')
-       incs += ' ' + env['BF_VERSE_INCLUDE']
+    defs.append('WITH_VERSE')
+    incs += ' ' + env['BF_VERSE_INCLUDE']
 
 # TODO buildinfo
 if env['BF_BUILDINFO'] == 1: