summaryrefslogtreecommitdiff
path: root/src/mainwin.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-09 23:55:46 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-09 23:55:46 (GMT)
commit5c999479a36623b0831c8667a0efe17153049463 (patch)
treeac97a9aabebc48804004fbd563f6fa860d714548 /src/mainwin.cc
parenta4810e00194ac60095547721e318cf2d550d4a5c (diff)
Added GUI for cache size adjustment
Diffstat (limited to 'src/mainwin.cc')
-rw-r--r--src/mainwin.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 4198847..f8a6f43 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -411,9 +411,9 @@ MainWindow::loadDesignSettings()
if (settings.value("design/autoReload").toBool()) {
designActionAutoReload->setChecked(true);
}
- uint polySetCacheSize = Preferences::inst()->getValue("caches/polysetCacheSize").toUInt();
+ uint polySetCacheSize = Preferences::inst()->getValue("advanced/polysetCacheSize").toUInt();
PolySetCache::instance()->setMaxSize(polySetCacheSize);
- uint cgalCacheSize = Preferences::inst()->getValue("caches/cgalCacheSize").toUInt();
+ uint cgalCacheSize = Preferences::inst()->getValue("advanced/cgalCacheSize").toUInt();
CGALCache::instance()->setMaxSize(cgalCacheSize);
}
@@ -804,7 +804,7 @@ void MainWindow::compileCSG(bool procevents)
}
}
- if (root_chain->polysets.size() > 1000) {
+ if (root_chain->polysets.size() > Preferences::inst()->getValue("advanced/openCSGLimit").toUInt()) {
PRINTF("WARNING: Normalized tree has %d elements!", int(root_chain->polysets.size()));
PRINTF("WARNING: OpenCSG rendering has been disabled.");
}
contact: Jan Huwald // Impressum