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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-02-16 13:00:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-02-16 13:00:17 +0300
commit6468cb5f9c905b6a613707ce3f733236afa61fab (patch)
treef4c963226bd77e004703747780f2db36626d8b27 /intern/cycles/blender/blender_util.h
parent5cbaf56b269ff04d086a07af9906cc44ecd4cfe5 (diff)
Faces split: Don't leave CD_NORMAL after split
This is supposed to be a temporary layer. If someone needs loop normals after split it should explicitly ask for that.
Diffstat (limited to 'intern/cycles/blender/blender_util.h')
-rw-r--r--intern/cycles/blender/blender_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_util.h b/intern/cycles/blender/blender_util.h
index 8120de96362..4411181dbcc 100644
--- a/intern/cycles/blender/blender_util.h
+++ b/intern/cycles/blender/blender_util.h
@@ -80,6 +80,7 @@ static inline BL::Mesh object_to_mesh(BL::BlendData& data,
}
else {
me.split_faces();
+ me.calc_normals_split();
}
}
if(subdivision_type == Mesh::SUBDIVISION_NONE) {