Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index 808cb985bf5..df4ab09998b 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -1409,19 +1409,11 @@ static GPUNodeLink *gpu_uniformbuffer_link(
{
bNodeSocket *socket;
- /* Some nodes can have been create on the fly and does
- * not have an original to point to. (i.e. the bump from
- * ntree_shader_relink_displacement). In this case just
- * revert to static constant folding. */
- if (node->original == NULL) {
- return NULL;
- }
-
if (in_out == SOCK_IN) {
- socket = BLI_findlink(&node->original->inputs, index);
+ socket = BLI_findlink(&node->inputs, index);
}
else {
- socket = BLI_findlink(&node->original->outputs, index);
+ socket = BLI_findlink(&node->outputs, index);
}
BLI_assert(socket != NULL);