Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 482 Lines • ▼ Show 20 Lines | if (data->vc.v3d->flag & V3D_INVALID_BACKBUF) { | ||||
| * rv3d->depths->dirty = 1; */ | * rv3d->depths->dirty = 1; */ | ||||
| ED_view3d_depth_update(data->vc.ar); | ED_view3d_depth_update(data->vc.ar); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| static bool PE_create_shape_tree(PEData *data, Object *shapeob) | static bool PE_create_shape_tree(PEData *data, Object *shapeob) | ||||
| { | { | ||||
| Mesh *mesh = BKE_object_get_evaluated_mesh(data->depsgraph, shapeob); | Object *shapeob_eval = DEG_get_evaluated_object(data->depsgraph, shapeob); | ||||
| Mesh *mesh = BKE_object_get_evaluated_mesh(shapeob_eval); | |||||
| memset(&data->shape_bvh, 0, sizeof(data->shape_bvh)); | memset(&data->shape_bvh, 0, sizeof(data->shape_bvh)); | ||||
| if (!mesh) { | if (!mesh) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return (BKE_bvhtree_from_mesh_get(&data->shape_bvh, mesh, BVHTREE_FROM_LOOPTRI, 4) != NULL); | return (BKE_bvhtree_from_mesh_get(&data->shape_bvh, mesh, BVHTREE_FROM_LOOPTRI, 4) != NULL); | ||||
| ▲ Show 20 Lines • Show All 4,975 Lines • Show Last 20 Lines | |||||