summaryrefslogtreecommitdiffstats
path: root/Smoke/interact.c
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-01-10 22:18:46 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-01-10 22:18:46 (GMT)
commit398578956e01518523a05d4245a2ce488955cf97 (patch)
tree7adacc47cf4a6b35eac9af0a07a39f790d9dc29e /Smoke/interact.c
parentc8c41f2f654c3a5283a299c27fd29fd47aaafe4f (diff)
download2iv35-398578956e01518523a05d4245a2ce488955cf97.zip
2iv35-398578956e01518523a05d4245a2ce488955cf97.tar.gz
2iv35-398578956e01518523a05d4245a2ce488955cf97.tar.bz2
'streamlines'
Diffstat (limited to 'Smoke/interact.c')
-rw-r--r--Smoke/interact.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Smoke/interact.c b/Smoke/interact.c
index f44e03c..16098a9 100644
--- a/Smoke/interact.c
+++ b/Smoke/interact.c
@@ -4,6 +4,7 @@
#include "funcs.h"
#include "renderer_gl.h"
+#include "streamlines.h"
#include "colormap.h"
#include "seedpoint.h"
@@ -69,7 +70,10 @@ void click(int button, int state, int mx, int my)
prev_rot_mz = mx;
}
- create_seedpoint(mx, my);
+ if (streamlines_get_render())
+ {
+ create_seedpoint(mx, my);
+ }
if (my <25) {
/* Click received on button bar */