Fix compatibility flag for nodetree
authorDalai Felinto <dfelinto@gmail.com>
Mon, 16 Oct 2017 18:36:44 +0000 (16:36 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Mon, 16 Oct 2017 18:36:45 +0000 (16:36 -0200)
commite8962f90de4222d6f750d3d3478eff65490365d8
tree45d534da762cab5b697d371fef0b42dffaad1f47
parenta2758152e2dccb3b016e13a3de2d9e58587866ab
Fix compatibility flag for nodetree

NODE_NEWER_SHADING was introduced in e868b459bb8e however it should have been
added as a bitflag.

BKE_scene_uses_blender_eevee() was used in gpu_shader_output() as a workaround
for compatibility being poorly used.

Anyways this fixes this situation. This is necessary for an upcoming patch, even
though this is considered temporary - since the other NODE_*_SHADING values are
legacy from Blender Internal drawing.
source/blender/blenkernel/BKE_node.h
source/blender/gpu/intern/gpu_material.c
source/blender/nodes/shader/node_shader_tree.c
source/blender/nodes/shader/nodes/node_shader_output.c