Fix: Cycles MetalRT motion blur crash in some scenes with static objects
Crash encountered during top-level BVH setup of an Agent 327 asset. Object had no keyframes so `decomp` was empty. Use the object's transform instead. Pull Request: https://projects.blender.org/blender/blender/pulls/141740
This commit is contained in:
committed by
Michael Jones (Apple)
parent
05f27f594e
commit
7ec0adf033
@@ -1215,8 +1215,10 @@ bool BVHMetal::build_TLAS(Progress &progress,
|
||||
# if defined(MAC_OS_VERSION_15_0)
|
||||
if (use_pcmi) {
|
||||
if (ob->get_geometry()->is_instanced()) {
|
||||
DecomposedTransform decomp;
|
||||
transform_motion_decompose(&decomp, &ob->get_tfm(), 1);
|
||||
decomposed_motion_transforms[motion_transform_index++] =
|
||||
decomposed_to_component_transform(decomp[0]);
|
||||
decomposed_to_component_transform(decomp);
|
||||
}
|
||||
else {
|
||||
decomposed_motion_transforms[motion_transform_index++] =
|
||||
|
||||
Reference in New Issue
Block a user