forked from bartvdbraak/blender
Cycles: Add strict assert when assigning input socket stack offset
This commit is contained in:
parent
b45b082531
commit
ece109dd60
@ -246,6 +246,7 @@ int SVMCompiler::stack_assign(ShaderInput *input)
|
||||
if(input->stack_offset == SVM_STACK_INVALID) {
|
||||
if(input->link) {
|
||||
/* linked to output -> use output offset */
|
||||
assert(input->link->stack_offset != SVM_STACK_INVALID);
|
||||
input->stack_offset = input->link->stack_offset;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user