Fix typo in BKE_object_as_kdtree
Seems like an oversight in {rB86635402d516}? Stumbled over this while investigating another report, but this line in its current form does not make sense (was taking derivedFinal - not derivedDeform - prior so I assume this has to be BKE_object_get_evaluated_mesh now). (it is now only used for vertex parenting where this should not be an issue, but best keep this generic). Differential Revision: https://developer.blender.org/D12425
This commit is contained in:
parent
b813648378
commit
9bb99532a5
|
@ -5312,7 +5312,7 @@ KDTree_3d *BKE_object_as_kdtree(Object *ob, int *r_tot)
|
|||
unsigned int i;
|
||||
|
||||
Mesh *me_eval = ob->runtime.mesh_deform_eval ? ob->runtime.mesh_deform_eval :
|
||||
ob->runtime.mesh_deform_eval;
|
||||
BKE_object_get_evaluated_mesh(ob);
|
||||
const int *index;
|
||||
|
||||
if (me_eval && (index = CustomData_get_layer(&me_eval->vdata, CD_ORIGINDEX))) {
|
||||
|
|
Loading…
Reference in New Issue