Commit: b4e5161b02a6522c6fd0a37369f37f5c9e47a73f
Author: Lukas Tönne
Date:   Tue Apr 28 19:18:15 2015 +0200
Branches: alembic
https://developer.blender.org/rBb4e5161b02a6522c6fd0a37369f37f5c9e47a73f

Fix for own bug in rB6d1fecc15254381420fdb1290eb611ed14cddaae.

The UV and vertex color attribute export function expects the curve data
arrays to contain only a single attribute at a time. They must be
cleared before filling in data for each UV/vcol attribute.

===================================================================

M       intern/cycles/blender/blender_curves.cpp

===================================================================

diff --git a/intern/cycles/blender/blender_curves.cpp 
b/intern/cycles/blender/blender_curves.cpp
index 005747e..e417a9f 100644
--- a/intern/cycles/blender/blender_curves.cpp
+++ b/intern/cycles/blender/blender_curves.cpp
@@ -1211,6 +1211,8 @@ void BlenderSync::sync_curves(Mesh *mesh, BL::Mesh 
b_mesh, BL::Object b_parent,
                        if(!mesh->need_attribute(scene, 
ustring(l->name().c_str())))
                                continue;
 
+                       CData.curve_vcol.clear();
+
                        for (int i = 0; i < b_psys_list.size(); ++i) {
                                CurvesPSysData &psys_data = b_psys_list[i];
                                if (psys_data.b_strands_children)
@@ -1245,6 +1247,8 @@ void BlenderSync::sync_curves(Mesh *mesh, BL::Mesh 
b_mesh, BL::Object b_parent,
                        if(!(mesh->need_attribute(scene, name) || 
(active_render && mesh->need_attribute(scene, ATTR_STD_UV))))
                                continue;
                        
+                       CData.curve_uv.clear();
+                       
                        for (int i = 0; i < b_psys_list.size(); ++i) {
                                CurvesPSysData &psys_data = b_psys_list[i];
                                if (psys_data.b_strands_children)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to