* control the creation of .bsc files when BF_DEBUG=1 on win32-vc. BF_BSC=1 (default...
[blender-staging.git] / tools / Blender.py
index 4e8ac0f5bf210a57e56d651d7872788823805658..2d76e47426350574e7dc6da6e40115cdd3c6f68a 100644 (file)
@@ -427,7 +427,7 @@ class BlenderEnvironment(SConsEnvironment):
              lenv.Append(LIBS = lenv['BF_QUICKTIME_LIB'])
              lenv.Append(LIBPATH = lenv['BF_QUICKTIME_LIBPATH'])
         prog = lenv.Program(target=builddir+'bin/'+progname, source=sources)
-        if lenv['BF_DEBUG'] and lenv['OURPLATFORM']=='win32-vc':
+        if lenv['BF_DEBUG'] and lenv['OURPLATFORM']=='win32-vc' and lenv['BF_BSC']:
             f = lenv.File(progname + '.bsc', builddir)
             brs = lenv.Command(f, prog, [bsc])
             SConsEnvironment.Default(self, brs)