diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-20 17:27:38 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2022-01-20 17:28:08 +0300 |
commit | 9315215b2068b1d92d7e218ca53934aab85d68d7 (patch) | |
tree | 036e2348f97ea2f6eee9f061ca690a27e643d4f4 /intern/cycles/util/math_int4.h | |
parent | 264fe10ddde9f69efb2bc5288c8bb5689373aa57 (diff) |
Fix T94726: crash with GPU subdivision on a custom bone shape
Custom bones are drawn by instancing the GPUBatch of the base object. To
access the mesh and its GPUBatch, `BKE_object_get_evaluated_mesh` was
used. However, since GPU subdivision support, this will return a
subdivision wrapper which will never be drawn, and thus will have an
invalid batch, which caused the crash.
`BKE_object_get_evaluated_mesh_no_subsurf` should be used instead, to
return the mesh that will be drawn, and have the subdivision evaluated
on the GPU. Note that the rest of the draw code is already using this
function.
Diffstat (limited to 'intern/cycles/util/math_int4.h')
0 files changed, 0 insertions, 0 deletions