[Bf-blender-cvs] [7f7413b] master: Cleanup: Use bools in BVHParams class.

Thomas Dinges noreply at git.blender.org
Wed Feb 18 12:06:32 CET 2015


Commit: 7f7413bce24ea21cd5e47f307d84d20606ac349c
Author: Thomas Dinges
Date:   Wed Feb 18 12:05:33 2015 +0100
Branches: master
https://developer.blender.org/rB7f7413bce24ea21cd5e47f307d84d20606ac349c

Cleanup: Use bools in BVHParams class.

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

M	intern/cycles/bvh/bvh_params.h

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

diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h
index 3fa6ebd..99bfd94 100644
--- a/intern/cycles/bvh/bvh_params.h
+++ b/intern/cycles/bvh/bvh_params.h
@@ -28,7 +28,7 @@ class BVHParams
 {
 public:
 	/* spatial split area threshold */
-	int use_spatial_split;
+	bool use_spatial_split;
 	float spatial_split_alpha;
 
 	/* SAH costs */
@@ -41,13 +41,13 @@ public:
 	int max_curve_leaf_size;
 
 	/* object or mesh level bvh */
-	int top_level;
+	bool top_level;
 
 	/* disk cache */
-	int use_cache;
+	bool use_cache;
 
 	/* QBVH */
-	int use_qbvh;
+	bool use_qbvh;
 
 	/* fixed parameters */
 	enum {




More information about the Bf-blender-cvs mailing list