[Bf-blender-cvs] [744233f2078] blender2.8: Subdiv: Cleanup, variable name spelling

Sergey Sharybin noreply at git.blender.org
Fri Sep 14 14:44:52 CEST 2018


Commit: 744233f2078fca85986bc98c7b72393fda9ca58e
Author: Sergey Sharybin
Date:   Thu Sep 13 17:45:33 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB744233f2078fca85986bc98c7b72393fda9ca58e

Subdiv: Cleanup, variable name spelling

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

M	source/blender/blenkernel/intern/subdiv_ccg.c

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

diff --git a/source/blender/blenkernel/intern/subdiv_ccg.c b/source/blender/blenkernel/intern/subdiv_ccg.c
index 505d215e7e9..649b4d3a3dc 100644
--- a/source/blender/blenkernel/intern/subdiv_ccg.c
+++ b/source/blender/blenkernel/intern/subdiv_ccg.c
@@ -158,7 +158,7 @@ typedef struct CCGEvalGridsData {
 	SubdivCCG *subdiv_ccg;
 	Subdiv *subdiv;
 	const Mesh *coarse_mesh;
-	int *face_petx_offset;
+	int *face_ptex_offset;
 } CCGEvalGridsData;
 
 static void subdiv_ccg_eval_grid_element(
@@ -211,7 +211,7 @@ static void subdiv_ccg_eval_regular_grid(CCGEvalGridsData *data,
 {
 	SubdivCCG *subdiv_ccg = data->subdiv_ccg;
 	const int coarse_poly_index = coarse_poly - data->coarse_mesh->mpoly;
-	const int ptex_face_index = data->face_petx_offset[coarse_poly_index];
+	const int ptex_face_index = data->face_ptex_offset[coarse_poly_index];
 	const int grid_size = subdiv_ccg->grid_size;
 	const float grid_size_1_inv = 1.0f / (float)(grid_size - 1);
 	const int element_size = element_size_bytes_get(subdiv_ccg);
@@ -252,7 +252,7 @@ static void subdiv_ccg_eval_special_grid(CCGEvalGridsData *data,
 			for (int x = 0; x < grid_size; x++) {
 				const float v = 1.0f - ((float)x * grid_size_1_inv);
 				const int ptex_face_index =
-				        data->face_petx_offset[coarse_poly_index] + corner;
+				        data->face_ptex_offset[coarse_poly_index] + corner;
 				const size_t grid_element_index = (size_t)y * grid_size + x;
 				const size_t grid_element_offset =
 				        grid_element_index * element_size;
@@ -298,7 +298,7 @@ static bool subdiv_ccg_evaluate_grids(
 	data.subdiv_ccg = subdiv_ccg;
 	data.subdiv = subdiv;
 	data.coarse_mesh = coarse_mesh;
-	data.face_petx_offset = BKE_subdiv_face_ptex_offset_get(subdiv);
+	data.face_ptex_offset = BKE_subdiv_face_ptex_offset_get(subdiv);
 	/* Threaded grids evaluation/ */
 	ParallelRangeSettings parallel_range_settings;
 	BLI_parallel_range_settings_defaults(&parallel_range_settings);



More information about the Bf-blender-cvs mailing list