Fix 31370: light falloff node linear output not working code.

Fix part of thread safety issue, there's still something else wrong.
This commit is contained in:
Brecht Van Lommel
2012-05-08 19:57:56 +00:00
parent 81255ca8ce
commit d9a70ceeb1
2 changed files with 4 additions and 2 deletions

View File

@@ -1731,7 +1731,6 @@ void LightFalloffNode::compile(SVMCompiler& compiler)
compiler.stack_assign(out);
compiler.add_node(NODE_LIGHT_FALLOFF, NODE_LIGHT_FALLOFF_LINEAR,
compiler.encode_uchar4(strength_in->stack_offset, smooth_in->stack_offset, out->stack_offset));
compiler.add_node(NODE_LIGHT_FALLOFF, NODE_LIGHT_FALLOFF_LINEAR, out->stack_offset);
}
out = output("Constant");