SCons: Fix for really nasty bug with polluting configuration environment

The issue was caused by the following construction:

  def = env['SOMETHING']
  defs.append('SOMETHING_MORE')

Since first assignment was actually referencing environment option it was totally
polluted hawing weird and wonderful side effects on all other areas of Blender.
This commit is contained in:
Sergey Sharybin
2015-08-04 18:04:45 +02:00
parent 1fc32249f5
commit dfc672f8bb
51 changed files with 108 additions and 54 deletions

View File

@@ -74,7 +74,8 @@ incs = [
incs.append(env['BF_PTHREADS_INC'])
incs.append(env['BF_BOOST_INC'])
defs = env['BF_GL_DEFINITIONS']
defs = []
defs += env['BF_GL_DEFINITIONS']
if env['WITH_BF_PYTHON']:
incs += Split(env['BF_PYTHON_INC'])