summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2010-09-13 16:40:08 (GMT)
committerMarius Kintel <marius@kintel.net>2010-10-31 00:42:39 (GMT)
commit819ae6d181883767e1bfc46e6860479eed5a3b8c (patch)
tree54db4c3a174b40b92e7cca61dd39de70281fdd88 /src/state.h
parent455a8e22c17bcce4b8b6e922981665c38959306c (diff)
bugfix: Matrix initialization state was wrong, made CSGTermRenderer fail
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state.h b/src/state.h
index 9b9e09d..512586d 100644
--- a/src/state.h
+++ b/src/state.h
@@ -6,7 +6,8 @@ class State
public:
State(const class AbstractNode *parent)
: parentnode(parent), isprefix(false), ispostfix(false), numchildren(0) {
- for (int i=0;i<20;i++) this->m[i] = 0.0;
+ for (int i=0;i<16;i++) this->m[i] = i % 5 == 0 ? 1.0 : 0.0;
+ for (int i=16;i<20;i++) this->m[i] = -1.0;
}
virtual ~State() {}
contact: Jan Huwald // Impressum