[Bf-blender-cvs] [4d5cb09d522] refactor-mesh-uv-map-generic: float (*)[2] -> float2 * in C++
Martijn Versteegh
noreply at git.blender.org
Thu Jan 5 14:50:39 CET 2023
Commit: 4d5cb09d522ddbf286845ae329e85daccab4bfce
Author: Martijn Versteegh
Date: Thu Jan 5 14:49:32 2023 +0100
Branches: refactor-mesh-uv-map-generic
https://developer.blender.org/rB4d5cb09d522ddbf286845ae329e85daccab4bfce
float (*)[2] -> float2 * in C++
===================================================================
M source/blender/modifiers/intern/MOD_array.cc
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_array.cc b/source/blender/modifiers/intern/MOD_array.cc
index 73a6ccec0e0..6018b8afd87 100644
--- a/source/blender/modifiers/intern/MOD_array.cc
+++ b/source/blender/modifiers/intern/MOD_array.cc
@@ -673,7 +673,7 @@ static Mesh *arrayModifier_doArray(ArrayModifierData *amd,
if (chunk_nloops > 0 && is_zero_v2(amd->uv_offset) == false) {
const int totuv = CustomData_number_of_layers(&result->ldata, CD_PROP_FLOAT2);
for (i = 0; i < totuv; i++) {
- float(*dmloopuv)[2] = static_cast<float(*)[2]>(
+ blender::float2 *dmloopuv = static_cast<blender::float2 *>(
CustomData_get_layer_n(&result->ldata, CD_PROP_FLOAT2, i));
dmloopuv += chunk_nloops;
for (c = 1; c < count; c++) {
More information about the Bf-blender-cvs
mailing list