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:
authorMartin Poirier <theeth@yahoo.com>2005-07-11 15:09:26 +0400
committerMartin Poirier <theeth@yahoo.com>2005-07-11 15:09:26 +0400
commit10c4c6463c64b6f10765e25291036c2fbe6b5fce (patch)
treeafecf6e7e1a40705050c2bd8cc6cb5fe947749da /source/blender/src/editmball.c
parent8301d7ad00c07c3082cd5369d7bffc24fc284c0e (diff)
Boundbox select object mode optimisation.
Changed selectprojektie (and renamed to view3d_opengl_select as suggested by Ton) to accept a buffer size, so boundbox can adapt it's buffer size to the number of object in scene. Also, the loop is done more smartly, since glSelect fills the buffer in the same order as the drawing order, so we save lops of looping on unselected object (which used to go through all the buffer before finding that they weren't selected). This scheme could probably be applied to all the other loops using glSelect. (good project for newbie coders)
Diffstat (limited to 'source/blender/src/editmball.c')
-rw-r--r--source/blender/src/editmball.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c
index 50511a1f94f..766ddd44065 100644
--- a/source/blender/src/editmball.c
+++ b/source/blender/src/editmball.c
@@ -245,7 +245,7 @@ void mouse_mball()
int a, hits;
unsigned int buffer[MAXPICKBUF];
- hits= selectprojektie(buffer, 0, 0, 0, 0);
+ hits= view3d_opengl_select(buffer, MAXPICKBUF, 0, 0, 0, 0);
/* does startelem exist? */
ml= editelems.first;