[Bf-blender-cvs] [3288346] cycles_bvh: Cycles BVH: Fix typo

Sergey Sharybin noreply at git.blender.org
Wed Jul 6 12:50:05 CEST 2016


Commit: 328834626c37f8933e2224fea5a4bcb58fdb9a3d
Author: Sergey Sharybin
Date:   Wed Jul 6 11:48:26 2016 +0200
Branches: cycles_bvh
https://developer.blender.org/rB328834626c37f8933e2224fea5a4bcb58fdb9a3d

Cycles BVH: Fix typo

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

M	intern/cycles/bvh/bvh_unaligned.cpp
M	intern/cycles/util/util_transform.h

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

diff --git a/intern/cycles/bvh/bvh_unaligned.cpp b/intern/cycles/bvh/bvh_unaligned.cpp
index 0ce1e73..a876c67 100644
--- a/intern/cycles/bvh/bvh_unaligned.cpp
+++ b/intern/cycles/bvh/bvh_unaligned.cpp
@@ -86,7 +86,7 @@ bool BVHUnaligned::compute_aligned_space(const BVHReference& ref,
 		float length;
 		const float3 axis = normalize_len(v2 - v1, &length);
 		if(length > 1e-6f) {
-			*aligned_space = make_trasnform_frame(axis);
+			*aligned_space = make_transform_frame(axis);
 			return true;
 		}
 	}
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h
index 07fdfca..7bb82ed 100644
--- a/intern/cycles/util/util_transform.h
+++ b/intern/cycles/util/util_transform.h
@@ -128,7 +128,7 @@ ccl_device_inline Transform make_transform(float a, float b, float c, float d,
 }
 
 /* Constructs a coordinate frame form a normalized normal. */
-ccl_device_inline Transform make_trasnform_frame(const float3& N)
+ccl_device_inline Transform make_transform_frame(const float3& N)
 {
 	const float3 dx0 = cross(make_float3(1.0f, 0.0f, 0.0f), N);
 	const float3 dx1 = cross(make_float3(0.0f, 1.0f, 0.0f), N);




More information about the Bf-blender-cvs mailing list