Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Blackbourn <chrisbblend@gmail.com>2022-08-08 01:15:13 +0300
committerChris Blackbourn <chrisbblend@gmail.com>2022-08-08 01:39:43 +0300
commit64984126a2b688a4bdd64bea4bcac1091756adab (patch)
treedb512bbc8be89eaaa8b65f4814b6b16014cf79d1 /source/blender/editors/sculpt_paint
parent387e7e9e8d0163750e2b4d97369f76c14cc021fd (diff)
Cleanup: refactoring uvislands to prepare for python api
Rename buf -> storage. See also: D15598
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_uv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_uv.c b/source/blender/editors/sculpt_paint/sculpt_uv.c
index 8ff7965513b..a36b0fddeb6 100644
--- a/source/blender/editors/sculpt_paint/sculpt_uv.c
+++ b/source/blender/editors/sculpt_paint/sculpt_uv.c
@@ -434,7 +434,7 @@ static int uv_element_offset_from_face_get(
if (!element || (doIslands && element->island != island_index)) {
return -1;
}
- return element - map->buf;
+ return element - map->storage;
}
static uint uv_edge_hash(const void *key)
@@ -520,8 +520,8 @@ static UvSculptData *uv_sculpt_stroke_init(bContext *C, wmOperator *op, const wm
if (do_island_optimization) {
unique_uvs = 0;
for (int i = 0; i < data->elementMap->total_uvs; i++) {
- if (data->elementMap->buf[i].separate &&
- (data->elementMap->buf[i].island == island_index)) {
+ if (data->elementMap->storage[i].separate &&
+ (data->elementMap->storage[i].island == island_index)) {
unique_uvs++;
}
}
@@ -569,7 +569,7 @@ static UvSculptData *uv_sculpt_stroke_init(bContext *C, wmOperator *op, const wm
data->uv[counter].uv = luv->uv;
}
/* Pointer arithmetic to the rescue, as always :). */
- uniqueUv[element - data->elementMap->buf] = counter;
+ uniqueUv[element - data->elementMap->storage] = counter;
}
}