diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-27 03:23:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-27 03:23:06 +0300 |
commit | 5e6c0bcded19bfbbe08ea1fcbaee85176b385b0c (patch) | |
tree | 65ffe8f51ab2272c09ccb24eb9720a6762f889ad /source/blender/editors | |
parent | dbf01ba68c7c40f8987f402d871c675bba2fce05 (diff) |
fix for fix r33330, bug [#23118].
combing hair the view matrix wasn't updated so depth comparison was incorrect.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index 37a75d51bf0..1fd9e91095f 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -372,8 +372,10 @@ static void PE_set_view3d_data(bContext *C, PEData *data) if((data->vc.v3d->drawtype>OB_WIRE) && (data->vc.v3d->flag & V3D_ZBUF_SELECT)) { if(data->vc.v3d->flag & V3D_INVALID_BACKBUF) { - view3d_validate_backbuf(&data->vc); + /* needed or else the draw matrix can be incorrect */ + view3d_operator_needs_opengl(C); + view3d_validate_backbuf(&data->vc); /* we may need to force an update here by setting the rv3d as dirty * for now it seems ok, but take care!: * rv3d->depths->dirty = 1; */ @@ -1485,8 +1487,6 @@ static int select_linked_exec(bContext *C, wmOperator *op) mval[0]= location[0]; mval[1]= location[1]; - view3d_operator_needs_opengl(C); - PE_set_view3d_data(C, &data); data.mval= mval; data.rad=75.0f; |