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>2016-05-23 14:38:15 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-05-23 14:38:15 +0300
commit6894bb055554b8db0af1fcfdec6e3fa5f088e777 (patch)
treef7f9cb4b6c76174c41936895f8024001eb3d1b0b /intern
parent7a35a0f4196bc2ece323c24cdecaba568555eb4d (diff)
Fix T48334: Cycles standalone xml import of uv coordinates
In Cycle standalone, the xml import of uv's is done in a way that a vertex could only have one unique uv coordinate. In practice it is most of the time not the case. Patch by Laurent Boiron, thanks!
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/app/cycles_xml.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index dc0c4f68898..f734d01f71d 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -936,9 +936,9 @@ static void xml_read_mesh(const XMLReadState& state, pugi::xml_node node)
index_offset = 0;
for(size_t i = 0; i < nverts.size(); i++) {
for(int j = 0; j < nverts[i]-2; j++) {
- int v0 = verts[index_offset];
- int v1 = verts[index_offset + j + 1];
- int v2 = verts[index_offset + j + 2];
+ int v0 = index_offset;
+ int v1 = index_offset + j + 1;
+ int v2 = index_offset + j + 2;
assert(v0*2+1 < (int)UV.size());
assert(v1*2+1 < (int)UV.size());