diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-10 22:18:46 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-10 22:18:46 (GMT) |
commit | 398578956e01518523a05d4245a2ce488955cf97 (patch) | |
tree | 7adacc47cf4a6b35eac9af0a07a39f790d9dc29e /Smoke/interact.c | |
parent | c8c41f2f654c3a5283a299c27fd29fd47aaafe4f (diff) | |
download | 2iv35-398578956e01518523a05d4245a2ce488955cf97.zip 2iv35-398578956e01518523a05d4245a2ce488955cf97.tar.gz 2iv35-398578956e01518523a05d4245a2ce488955cf97.tar.bz2 |
'streamlines'
Diffstat (limited to 'Smoke/interact.c')
-rw-r--r-- | Smoke/interact.c | 6 |
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 */ |