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:
authorCampbell Barton <ideasman42@gmail.com>2005-12-16 16:50:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2005-12-16 16:50:45 +0300
commit3a50444ad4e50f7dedfb8a0ba990d2f30b79b43c (patch)
treea5b6ccc5795647487db855b28eb5eb5397386674 /source/blender/src/drawoops.c
parentf5121b2496ad8ace0f9262ae9c47b52caeb700e8 (diff)
Oops, left the script menu in there. problems.
Diffstat (limited to 'source/blender/src/drawoops.c')
-rw-r--r--source/blender/src/drawoops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawoops.c b/source/blender/src/drawoops.c
index 2cc39627d9d..4ecc31eb082 100644
--- a/source/blender/src/drawoops.c
+++ b/source/blender/src/drawoops.c
@@ -71,7 +71,7 @@
float oopscalex;
struct BMF_Font *font; /* for using different sized fonts */
-void boundbox_oops()
+void boundbox_oops(short sel)
{
Oops *oops;
float min[2], max[2];
@@ -80,13 +80,13 @@ void boundbox_oops()
if(G.soops==0) return;
min[0]= 1000.0;
- max[0]= -10000.0;
+ max[0]= -1000.0;
min[1]= 1000.0;
max[1]= -1000.0;
oops= G.soops->oops.first;
while(oops) {
- if(oops->hide==0) {
+ if (oops->hide==0 && !sel || (sel && oops->flag & SELECT )) {
ok= 1;
min[0]= MIN2(min[0], oops->x);
@@ -430,7 +430,7 @@ void drawoopsspace(ScrArea *sa, void *spacedata)
else {
build_oops(); /* changed to become first call... */
- boundbox_oops();
+ boundbox_oops(0);
calc_scrollrcts(sa, G.v2d, curarea->winx, curarea->winy);
myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);