summaryrefslogtreecommitdiff
path: root/src/csgops.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-06 17:37:12 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-06 17:37:12 (GMT)
commit45161d4356060e0a974b072c53349569332b6a74 (patch)
tree3681aede71d35912bc56738ae22ef2f28211e9f7 /src/csgops.cc
parent970c6c1c6e4a7860170aee4ef2239fae7fcd9934 (diff)
Slight refactoring of builtin function and module handling
Diffstat (limited to 'src/csgops.cc')
-rw-r--r--src/csgops.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/csgops.cc b/src/csgops.cc
index 7b363f0..7524559 100644
--- a/src/csgops.cc
+++ b/src/csgops.cc
@@ -72,8 +72,8 @@ std::string CsgNode::name() const
void register_builtin_csgops()
{
- builtin_modules["union"] = new CsgModule(CSG_TYPE_UNION);
- builtin_modules["difference"] = new CsgModule(CSG_TYPE_DIFFERENCE);
- builtin_modules["intersection"] = new CsgModule(CSG_TYPE_INTERSECTION);
+ Builtins::init("union", new CsgModule(CSG_TYPE_UNION));
+ Builtins::init("difference", new CsgModule(CSG_TYPE_DIFFERENCE));
+ Builtins::init("intersection", new CsgModule(CSG_TYPE_INTERSECTION));
}
contact: Jan Huwald // Impressum