Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-10-26 06:35:37 +0300
committerJoshua Leung <aligorith@gmail.com>2009-10-26 06:35:37 +0300
commit538697719ac296738a0349a4fd75d18930d81744 (patch)
treebc7fb1b944408e74439c7ac932ba82081560c357 /source/blender/editors/space_view3d/view3d_select.c
parent3af933325113a4075856e8d4287c54019c7cb495 (diff)
Bugreports #19724 and #19725 for Lasso Select
Fixes for these were provided by the submitter, Clark Tucker (ctucker_toc). Thanks! - #19724: Fix for problems with lasso select with 'occlude background geometry' turned off. Removed a duplicate call to ED_view3d_init_mats_rv3d(). (NOTE: I couldn't reproduce the error on my system, but the duplicate call does look rather fishy. Removing it doesn't seem to have any negative effects at least) - #19725: Lasso select does not update 'selected vertex count' in 'INFO bar'. Added a notifier here to get the counter refreshed.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_select.c')
-rw-r--r--source/blender/editors/space_view3d/view3d_select.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index 12b26e1d815..1f186f0d931 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -146,10 +146,6 @@ void view3d_get_transformation(ViewContext *vc, Object *ob, bglMats *mats)
/* ********************** view3d_select: selection manipulations ********************* */
-/* XXX to solve *************** */
-static void BIF_undo_push() {}
-/* XXX end ********************* */
-
/* local prototypes */
void EM_backbuf_checkAndSelectVerts(EditMesh *em, int select)
@@ -461,8 +457,6 @@ static void do_lasso_select_mesh(ViewContext *vc, short mcords[][2], short moves
bbsel= EM_mask_init_backbuf_border(vc, mcords, moves, rect.xmin, rect.ymin, rect.xmax, rect.ymax);
ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */
- ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */
-
if(ts->selectmode & SCE_SELECT_VERTEX) {
if (bbsel) {
EM_backbuf_checkAndSelectVerts(vc->em, select);
@@ -723,9 +717,8 @@ void view3d_lasso_select(bContext *C, ViewContext *vc, short mcords[][2], short
do_lasso_select_lattice(vc, mcords, moves, select);
else if(vc->obedit->type==OB_ARMATURE)
do_lasso_select_armature(vc, mcords, moves, select);
-
- BIF_undo_push("Lasso select");
+ WM_event_add_notifier(C, NC_GEOM|ND_SELECT, vc->obedit->data);
}