[Bf-blender-cvs] [09dcc3c2f8b] blender-v3.2-release: Fix T98727: Dynamic Paint does not update normals
Philipp Oeser
noreply at git.blender.org
Wed Jun 22 13:02:58 CEST 2022
Commit: 09dcc3c2f8b78e0f1c8123f9408fa3d0b8021bd3
Author: Philipp Oeser
Date: Fri Jun 10 10:31:44 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rB09dcc3c2f8b78e0f1c8123f9408fa3d0b8021bd3
Fix T98727: Dynamic Paint does not update normals
Caused by {rB6a3c3c77b3eb}.
Displacement and wave were tagging the original mesh normals dirty,
instead the result's normals need tagging. Seems like a typo in above
commit (similar to rBfe43c170831f).
Maniphest Tasks: T98727
Differential Revision: https://developer.blender.org/D15165
===================================================================
M source/blender/blenkernel/intern/dynamicpaint.c
===================================================================
diff --git a/source/blender/blenkernel/intern/dynamicpaint.c b/source/blender/blenkernel/intern/dynamicpaint.c
index 22341f98375..b3450fd25f7 100644
--- a/source/blender/blenkernel/intern/dynamicpaint.c
+++ b/source/blender/blenkernel/intern/dynamicpaint.c
@@ -2025,13 +2025,13 @@ static Mesh *dynamicPaint_Modifier_apply(DynamicPaintModifierData *pmd, Object *
settings.use_threading = (sData->total_points > 1000);
BLI_task_parallel_range(
0, sData->total_points, &data, dynamic_paint_apply_surface_wave_cb, &settings);
- BKE_mesh_normals_tag_dirty(mesh);
+ BKE_mesh_normals_tag_dirty(result);
}
/* displace */
if (surface->type == MOD_DPAINT_SURFACE_T_DISPLACE) {
dynamicPaint_applySurfaceDisplace(surface, result);
- BKE_mesh_normals_tag_dirty(mesh);
+ BKE_mesh_normals_tag_dirty(result);
}
}
}
More information about the Bf-blender-cvs
mailing list