[Bf-blender-cvs] [5409c7d] cycles_bvh: Cycles: Small optimization of unaligned heuristic

Sergey Sharybin noreply at git.blender.org
Wed Jun 15 11:39:19 CEST 2016


Commit: 5409c7df871db825719d5930a9fe127aa206c09a
Author: Sergey Sharybin
Date:   Wed Jun 15 11:39:21 2016 +0200
Branches: cycles_bvh
https://developer.blender.org/rB5409c7df871db825719d5930a9fe127aa206c09a

Cycles: Small optimization of unaligned heuristic

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

M	intern/cycles/bvh/bvh_unaligned.cpp

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

diff --git a/intern/cycles/bvh/bvh_unaligned.cpp b/intern/cycles/bvh/bvh_unaligned.cpp
index 98e7de6..0ce1e73 100644
--- a/intern/cycles/bvh/bvh_unaligned.cpp
+++ b/intern/cycles/bvh/bvh_unaligned.cpp
@@ -49,7 +49,7 @@ Transform BVHUnaligned::compute_aligned_space(
 			return aligned_space;
 		}
 	}
-	return make_trasnform_frame(make_float3(0.0f, 0.0f, 1.0f));
+	return transform_identity();
 }
 
 Transform BVHUnaligned::compute_aligned_space(
@@ -66,7 +66,7 @@ Transform BVHUnaligned::compute_aligned_space(
 			return aligned_space;
 		}
 	}
-	return make_trasnform_frame(make_float3(0.0f, 0.0f, 1.0f));
+	return transform_identity();
 }
 
 bool BVHUnaligned::compute_aligned_space(const BVHReference& ref,
@@ -90,7 +90,7 @@ bool BVHUnaligned::compute_aligned_space(const BVHReference& ref,
 			return true;
 		}
 	}
-	*aligned_space = make_trasnform_frame(make_float3(0.0f, 0.0f, 1.0f));
+	*aligned_space = transform_identity();
 	return false;
 }




More information about the Bf-blender-cvs mailing list