Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_edit.c
| Show First 20 Lines • Show All 445 Lines • ▼ Show 20 Lines | static void PE_set_view3d_data(bContext *C, PEData *data) | ||||
| ED_view3d_viewcontext_init(C, &data->vc); | ED_view3d_viewcontext_init(C, &data->vc); | ||||
| if (V3D_IS_ZBUF(data->vc.v3d)) { | if (V3D_IS_ZBUF(data->vc.v3d)) { | ||||
| if (data->vc.v3d->flag & V3D_INVALID_BACKBUF) { | if (data->vc.v3d->flag & V3D_INVALID_BACKBUF) { | ||||
| /* needed or else the draw matrix can be incorrect */ | /* needed or else the draw matrix can be incorrect */ | ||||
| view3d_operator_needs_opengl(C); | view3d_operator_needs_opengl(C); | ||||
| ED_view3d_backbuf_validate(&data->vc); | ED_view3d_backbuf_depth_validate(&data->vc); | ||||
| /* we may need to force an update here by setting the rv3d as dirty | /* we may need to force an update here by setting the rv3d as dirty | ||||
| * for now it seems ok, but take care!: | * for now it seems ok, but take care!: | ||||
| * rv3d->depths->dirty = 1; */ | * rv3d->depths->dirty = 1; */ | ||||
| ED_view3d_depth_update(data->vc.ar); | ED_view3d_depth_update(data->vc.ar); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 4,593 Lines • Show Last 20 Lines | |||||