From 2adf4b401ed289a3f9f3863b1bf5abb52d61f148 Mon Sep 17 00:00:00 2001 From: Alex Fuller Date: Thu, 25 Apr 2019 14:04:31 +0200 Subject: Fix for Cycles UV adaptive subdivision after float2 changes. Differential Revision: https://developer.blender.org/D4717 --- intern/cycles/render/attribute.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'intern/cycles') diff --git a/intern/cycles/render/attribute.cpp b/intern/cycles/render/attribute.cpp index f7788b6a490..57c74067dbf 100644 --- a/intern/cycles/render/attribute.cpp +++ b/intern/cycles/render/attribute.cpp @@ -254,6 +254,9 @@ void Attribute::add_with_weight(void* dst, void* src, float weight) else if(same_storage(type, TypeDesc::TypeFloat)) { *((float*)dst) += *((float*)src) * weight; } + else if(same_storage(type, TypeFloat2)) { + *((float2*)dst) += *((float2*)src) * weight; + } else if(same_storage(type, TypeDesc::TypeVector)) { *((float4*)dst) += *((float4*)src) * weight; } -- cgit v1.2.3