[Bf-blender-cvs] [675587e] cycles_hair_bvh: Merge branch 'master' into cycles_hair_bvh

Sergey Sharybin noreply at git.blender.org
Thu Jun 9 13:01:21 CEST 2016


Commit: 675587e12d3c145ac070f8908f01dc4fb8bff084
Author: Sergey Sharybin
Date:   Wed May 18 16:18:19 2016 +0200
Branches: cycles_hair_bvh
https://developer.blender.org/rB675587e12d3c145ac070f8908f01dc4fb8bff084

Merge branch 'master' into cycles_hair_bvh

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



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

diff --cc intern/cycles/bvh/bvh_build.cpp
index dbe38a3,76a1bfa..1c6a778
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@@ -706,9 -607,10 +706,11 @@@ BVHNode* BVHBuild::create_leaf_node(con
  	vector<int, LeafStackAllocator> p_type[PRIMITIVE_NUM_TOTAL];
  	vector<int, LeafStackAllocator> p_index[PRIMITIVE_NUM_TOTAL];
  	vector<int, LeafStackAllocator> p_object[PRIMITIVE_NUM_TOTAL];
 +	vector<BVHReference, LeafStackAllocator> p_ref[PRIMITIVE_NUM_TOTAL];
+ 
  	/* TODO(sergey): In theory we should be able to store references. */
- 	vector<BVHReference, LeafStackAllocator> object_references;
+ 	typedef StackAllocator<256, BVHReference> LeafReferenceStackAllocator;
+ 	vector<BVHReference, LeafReferenceStackAllocator> object_references;
  
  	uint visibility[PRIMITIVE_NUM_TOTAL] = {0};
  	/* NOTE: Keep initializtion in sync with actual number of primitives. */




More information about the Bf-blender-cvs mailing list