summaryrefslogtreecommitdiff
path: root/src/cgaladv.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-11 22:23:53 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-11 22:23:53 (GMT)
commitfc257c93835470181f73d27e1867057d24a43c1e (patch)
tree034944062417cf742d17594cfc72337a1f8b9916 /src/cgaladv.cc
parent1726c26518cdc03cc1aff0438ccf4cdc93806eca (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.cc10
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);
contact: Jan Huwald // Impressum