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:
@@ -62,7 +62,8 @@ sources = env.Glob('bmesh/*.c')
|
||||
env.BlenderLib( libname = 'bf_python_bmesh', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165])
|
||||
|
||||
# generic
|
||||
defs = env['BF_GL_DEFINITIONS']
|
||||
defs = []
|
||||
defs += env['BF_GL_DEFINITIONS']
|
||||
|
||||
if is_debug:
|
||||
defs.append('_DEBUG')
|
||||
@@ -79,7 +80,8 @@ env.BlenderLib( libname = 'bf_python_mathutils', sources = Split(sources), inclu
|
||||
|
||||
|
||||
# bpy
|
||||
defs = env['BF_GL_DEFINITIONS']
|
||||
defs = []
|
||||
defs += env['BF_GL_DEFINITIONS']
|
||||
|
||||
if is_debug:
|
||||
defs.append('_DEBUG')
|
||||
|
Reference in New Issue
Block a user