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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-21 13:26:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-21 13:26:36 +0300
commit21777533fbef067fd680db9b6c6e5e79b823af9d (patch)
tree0d4498e055501217a0b4f3481f8097cc9f060ebf /intern
parent0e9605f44d2611b16fc7b4541aee33b4c681426c (diff)
parent6d8aa8505115c03ab2a50489f23fe36dea8cd564 (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/render/mesh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp
index 7cfbb7b7c7d..7a9d604244d 100644
--- a/intern/cycles/render/mesh.cpp
+++ b/intern/cycles/render/mesh.cpp
@@ -1307,7 +1307,7 @@ void MeshManager::update_svm_attributes(Device *, DeviceScene *dscene, Scene *sc
return;
/* create attribute map */
- uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size*scene->meshes.size());
+ uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size);
memset(attr_map, 0, dscene->attributes_map.size()*sizeof(uint));
for(size_t i = 0; i < scene->meshes.size(); i++) {