summaryrefslogtreecommitdiff
path: root/src/animate.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 08:19:26 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-09-04 08:19:26 -0400
commitf18103d3ef037ab00004ef2095162b3802af58c2 (patch)
treea83da994ad996e007561127cab09bb1fdf2bf37c /src/animate.cpp
parentd4e6135a179cf6005cc50800f060854b34ae2e8b (diff)
parentdb745a57fc981df7db3c308321d4023d75adf351 (diff)
downloadfuse_networks-f18103d3ef037ab00004ef2095162b3802af58c2.tar.gz
fuse_networks-f18103d3ef037ab00004ef2095162b3802af58c2.tar.bz2
fuse_networks-f18103d3ef037ab00004ef2095162b3802af58c2.zip
Merge branch 'elastic' of git:research/fracture/code into elastic
Diffstat (limited to 'src/animate.cpp')
-rw-r--r--src/animate.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/animate.cpp b/src/animate.cpp
index b1031dc..a7b6173 100644
--- a/src/animate.cpp
+++ b/src/animate.cpp
@@ -17,6 +17,7 @@ void animate::pre_fracture(const network &n) {
lv = std::numeric_limits<long double>::lowest();
avalanches = {};
boost::remove_edge_if(trivial, G);
+ seen_guy = false;
glClearColor(1.0f, 1.0f, 1.0f, 1.0f );
glLineWidth(5);
@@ -135,7 +136,7 @@ void animate::bond_broken(const network& n, const current_info& cur, unsigned i)
}
glEnd();
glFlush();
- if (nw > 2) {std::cout << "\n"; getchar();}
+ if (nw > 2 && !seen_guy) {seen_guy = true; getchar();}
}
void animate::post_fracture(network &n) {