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
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-01-12 17:22:41 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-01-12 17:22:41 +0300
commit83d18a2a918964a1a587bb2d4795ec9cc6b8de53 (patch)
treee531adb7ada45f800594a07131547da5ffa80131 /intern
parent53fa389802161e9e4ff6b5e0bfaa61cd4c761be6 (diff)
Cycles: Make it more clear message why curve motion attribute was removed
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/blender_curves.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/intern/cycles/blender/blender_curves.cpp b/intern/cycles/blender/blender_curves.cpp
index 378ae67f0c7..30bacc007b0 100644
--- a/intern/cycles/blender/blender_curves.cpp
+++ b/intern/cycles/blender/blender_curves.cpp
@@ -677,8 +677,13 @@ static void ExportCurveSegmentsMotion(Mesh *mesh, ParticleCurveData *CData, int
/* in case of new attribute, we verify if there really was any motion */
if(new_attribute) {
if(i != numkeys || !have_motion) {
- /* no motion, remove attributes again */
- VLOG(1) << "No motion, removing attribute";
+ /* No motion or hair "topology" changed, remove attributes again. */
+ if(i != numkeys) {
+ VLOG(1) << "Hair topology changed, removing attribute.";
+ }
+ else {
+ VLOG(1) << "No motion, removing attribute.";
+ }
mesh->curve_attributes.remove(ATTR_STD_MOTION_VERTEX_POSITION);
}
else if(time_index > 0) {