diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-17 02:07:55 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-17 02:07:55 +0400 |
commit | d537a1586d7bd4c1eef40a56d4d57be2df7b95ec (patch) | |
tree | f0a5a718e7cbe2c2d3ca13866519c41a6d42b5c5 /intern/cycles/render/mesh.cpp | |
parent | 590a524323b6a5672a759a70e25226e4f6f2855c (diff) |
Cycles: fix crash using uv + generated texture coordinates on a single mesh.
Diffstat (limited to 'intern/cycles/render/mesh.cpp')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index ac07ee8e89f..2fef54605a1 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -378,7 +378,7 @@ void MeshManager::update_svm_attributes(Device *device, DeviceScene *dscene, Sce j = 0; foreach(AttributeRequest& req, attributes.requests) { - int index = i*attr_map_stride; + int index = i*attr_map_stride + j; uint id; if(req.std == Attribute::STD_NONE) |