[Bf-blender-cvs] [ece109dd60a] master: Cycles: Add strict assert when assigning input socket stack offset
Sergey Sharybin
noreply at git.blender.org
Tue Dec 11 14:34:58 CET 2018
Commit: ece109dd60ab5e0be5d037b6e3f051afe1bfc47d
Author: Sergey Sharybin
Date: Tue Dec 11 14:34:28 2018 +0100
Branches: master
https://developer.blender.org/rBece109dd60ab5e0be5d037b6e3f051afe1bfc47d
Cycles: Add strict assert when assigning input socket stack offset
===================================================================
M intern/cycles/render/svm.cpp
===================================================================
diff --git a/intern/cycles/render/svm.cpp b/intern/cycles/render/svm.cpp
index 01fda0a9e01..656ccbcb70f 100644
--- a/intern/cycles/render/svm.cpp
+++ b/intern/cycles/render/svm.cpp
@@ -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 {
More information about the Bf-blender-cvs
mailing list