From 3c10de2c9b49589d2943ffb5b235e7930f3a4d17 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Mar 2019 23:09:22 +1100 Subject: 3D View: avoid redundant circle select updates This refreshes on cursor motion so it's worth avoiding redundant updates, especially for multi-object edit-modes where many objects aren't even near the object being selected. This commit also moves to passing eSelectOp to circle select functions in preparation for adding a select mode tool option. --- source/blender/editors/include/ED_particle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/include') diff --git a/source/blender/editors/include/ED_particle.h b/source/blender/editors/include/ED_particle.h index 7a612d1f4d9..bbecffee9c0 100644 --- a/source/blender/editors/include/ED_particle.h +++ b/source/blender/editors/include/ED_particle.h @@ -55,7 +55,7 @@ void PE_update_object( /* selection tools */ int PE_mouse_particles(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle); int PE_box_select(struct bContext *C, const struct rcti *rect, const int sel_op); -int PE_circle_select(struct bContext *C, int selecting, const int mval[2], float rad); +bool PE_circle_select(struct bContext *C, int sel_op, const int mval[2], float rad); int PE_lasso_select(struct bContext *C, const int mcords[][2], const short moves, const int sel_op); void PE_deselect_all_visible(struct PTCacheEdit *edit); -- cgit v1.2.3