Cycles: Make it more clear message why curve motion attribute was removed

This commit is contained in:
Sergey Sharybin 2017-01-12 15:22:41 +01:00
parent 086390dce7
commit 10cef4e86f
1 changed files with 7 additions and 2 deletions

View File

@ -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) {