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:
authorCampbell Barton <campbell@blender.org>2022-05-18 10:40:19 +0300
committerCampbell Barton <campbell@blender.org>2022-05-18 10:53:45 +0300
commitc536791f36b7b175a188b615ffcc5e366b833da4 (patch)
tree73fc4eb1c6491304285fc1f102619090b5c0783b /source/blender/modifiers/intern/MOD_screw.c
parentba2c6c90face552eff4a85f093639788d0ca9d57 (diff)
Cleanup: remove unused variables, redundant assignments
Diffstat (limited to 'source/blender/modifiers/intern/MOD_screw.c')
-rw-r--r--source/blender/modifiers/intern/MOD_screw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_screw.c b/source/blender/modifiers/intern/MOD_screw.c
index 4157acf8bac..0e22f59c2fb 100644
--- a/source/blender/modifiers/intern/MOD_screw.c
+++ b/source/blender/modifiers/intern/MOD_screw.c
@@ -881,10 +881,8 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
/* set normal */
if (vert_connect) {
if (do_normal_create) {
- /* set the normal now its transformed */
- float nor_tx[3];
- mul_v3_m3v3(nor_tx, mat3, vert_connect[j].no);
- copy_v3_v3(vert_normals_new[mv_new - mvert_new], nor_tx);
+ /* Set the normal now its transformed. */
+ mul_v3_m3v3(vert_normals_new[mv_new - mvert_new], mat3, vert_connect[j].no);
}
}