[Bf-blender-cvs] [12a3de96bbc] master: Fix T103972: crash with cloth simulation rest shape key and subdivision surface
Brecht Van Lommel
noreply at git.blender.org
Thu Jan 19 17:33:21 CET 2023
Commit: 12a3de96bbc9085748af53f61ac7a9fc6405844f
Author: Brecht Van Lommel
Date: Thu Jan 19 17:32:09 2023 +0100
Branches: master
https://developer.blender.org/rB12a3de96bbc9085748af53f61ac7a9fc6405844f
Fix T103972: crash with cloth simulation rest shape key and subdivision surface
===================================================================
M source/blender/blenkernel/intern/subdiv_mesh.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/subdiv_mesh.cc b/source/blender/blenkernel/intern/subdiv_mesh.cc
index dbb58fd73de..dbeefcb1e7b 100644
--- a/source/blender/blenkernel/intern/subdiv_mesh.cc
+++ b/source/blender/blenkernel/intern/subdiv_mesh.cc
@@ -471,11 +471,11 @@ static void subdiv_vertex_orco_evaluate(const SubdivMeshContext *ctx,
if (ctx->orco) {
copy_v3_v3(ctx->orco[subdiv_vertex_index], vertex_data);
if (ctx->cloth_orco) {
- copy_v3_v3(ctx->orco[subdiv_vertex_index], vertex_data + 3);
+ copy_v3_v3(ctx->cloth_orco[subdiv_vertex_index], vertex_data + 3);
}
}
else if (ctx->cloth_orco) {
- copy_v3_v3(ctx->orco[subdiv_vertex_index], vertex_data);
+ copy_v3_v3(ctx->cloth_orco[subdiv_vertex_index], vertex_data);
}
}
}
More information about the Bf-blender-cvs
mailing list