summaryrefslogtreecommitdiffstats
path: root/Smoke/interact.c
diff options
context:
space:
mode:
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 */