From 33ca4daf8f6de521a728e40ec02df85dc9eece38 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 28 Jun 2024 14:34:26 +0200 Subject: [PATCH] Fix #123882: Ocean Modifier not updating normals in "Displace" mode Exposed by 383a145a190c The real culprit was in 6a3c3c77b3 though (where the original meshes normals were tagged dirty instead of the result's). So to resolve, now tag the result (not the original). Pull Request: https://projects.blender.org/blender/blender/pulls/123893 --- source/blender/modifiers/intern/MOD_ocean.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/modifiers/intern/MOD_ocean.cc b/source/blender/modifiers/intern/MOD_ocean.cc index 4f6654e0452..92843e0fae1 100644 --- a/source/blender/modifiers/intern/MOD_ocean.cc +++ b/source/blender/modifiers/intern/MOD_ocean.cc @@ -442,7 +442,7 @@ static Mesh *doOcean(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mes } } - mesh->tag_positions_changed(); + result->tag_positions_changed(); if (allocated_ocean) { BKE_ocean_free(omd->ocean);