diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-11 22:23:53 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-11 22:23:53 (GMT) |
commit | fc257c93835470181f73d27e1867057d24a43c1e (patch) | |
tree | 034944062417cf742d17594cfc72337a1f8b9916 /src/cgaladv.cc | |
parent | 1726c26518cdc03cc1aff0438ccf4cdc93806eca (diff) |
make resize of flat objects fail in the direction normal to the flat.
also fail on resize to negative size.
update tests
Diffstat (limited to 'src/cgaladv.cc')
-rw-r--r-- | src/cgaladv.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cgaladv.cc b/src/cgaladv.cc index fb0bfaf..a4cb5ec 100644 --- a/src/cgaladv.cc +++ b/src/cgaladv.cc @@ -97,8 +97,6 @@ AbstractNode *CgaladvModule::evaluate(const Context *ctx, const ModuleInstantiat if ( va.size() >= 1 ) node->autosize[0] = va[0].toBool(); if ( va.size() >= 2 ) node->autosize[1] = va[1].toBool(); if ( va.size() >= 3 ) node->autosize[2] = va[2].toBool(); - std::cout << "adv.cc: " << va << "\n"; - std::cout << "adv.cc as: " << node->autosize << "\n"; } else if ( autosize.type() == Value::BOOL ) { node->autosize << true, true, true; @@ -167,10 +165,10 @@ std::string CgaladvNode::toString() const break; case RESIZE: stream << "(newsize = [" - << this->newsize[0] << "," - << this->newsize[1] << "," - << this->newsize[2] << "]" - << ", auto = " << this->autosize << ")"; + << this->newsize[0] << "," << this->newsize[1] << "," << this->newsize[2] << "]" + << ", auto = [" + << this->autosize[0] << "," << this->autosize[1] << "," << this->autosize[2] << "]" + << ")"; break; default: assert(false); |