Fix T103972: crash with cloth simulation rest shape key and subdivision surface
This commit is contained in:
parent
25ce705617
commit
12a3de96bb
Notes:
blender-bot
2023-02-14 06:27:47 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #103972, Regression: Crash when setting cloth simulation rest shape key with subdivision modifier
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue