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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-08-13 06:37:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-08-13 08:41:57 +0300
commitee909783de095e850fead8f6e112daf605ebb779 (patch)
tree0dfadf61cc48862d61a537741f281ef3cbf36840 /source
parent494560f19dacd8cc8dd58113a079980a759a3195 (diff)
Cleanup: use 'inst_ob' variable name for consistency
Dupli verts/faces named these arguments differently.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/object_dupli.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/object_dupli.c b/source/blender/blenkernel/intern/object_dupli.c
index db38740c640..7e13d3a91a1 100644
--- a/source/blender/blenkernel/intern/object_dupli.c
+++ b/source/blender/blenkernel/intern/object_dupli.c
@@ -431,7 +431,7 @@ static void vertex_dupli(const VertexDupliData *vdd,
/* `obmat` is transform to vertex. */
get_duplivert_transform(co, no, vdd->use_rotation, inst_ob->trackflag, inst_ob->upflag, obmat);
/* Make offset relative to inst_ob using relative child transform. */
- mul_mat3_m4_v3((float(*)[4])vdd->child_imat, obmat[3]);
+ mul_mat3_m4_v3(vdd->child_imat, obmat[3]);
/* Apply `obmat` _after_ the local vertex transform. */
mul_m4_m4m4(obmat, inst_ob->obmat, obmat);
@@ -449,14 +449,14 @@ static void vertex_dupli(const VertexDupliData *vdd,
make_recursive_duplis(vdd->ctx, vdd->inst_ob, space_mat, index);
}
-static void make_child_duplis_verts(const DupliContext *ctx, void *userdata, Object *child)
+static void make_child_duplis_verts(const DupliContext *ctx, void *userdata, Object *inst_ob)
{
VertexDupliData *vdd = userdata;
- vdd->inst_ob = child;
- invert_m4_m4(child->imat, child->obmat);
+ vdd->inst_ob = inst_ob;
+ invert_m4_m4(inst_ob->imat, inst_ob->obmat);
/* Relative transform from parent to child space. */
- mul_m4_m4m4(vdd->child_imat, child->imat, ctx->object->obmat);
+ mul_m4_m4m4(vdd->child_imat, inst_ob->imat, ctx->object->obmat);
const MVert *mv = vdd->mvert;
for (int i = 0; i < vdd->totvert; i++, mv++) {