mirror of https://github.com/vitalif/openscad
Deprecated polygons(triangles=[])
parent
4be55c016e
commit
a9bb2651e0
|
@ -27,6 +27,7 @@ o Stability fixes of CGAL-related crashes
|
|||
|
||||
Deprecations:
|
||||
o child() is no longer supported. Use children() instead.
|
||||
o polyhedron(triangles=[...]): Use polyhedron(faces=[...]) instead.
|
||||
|
||||
Misc:
|
||||
o We now use CGAL's EPEC kernel
|
||||
|
|
|
@ -239,6 +239,9 @@ AbstractNode *PrimitiveModule::instantiate(const Context *ctx, const ModuleInsta
|
|||
if (node->faces.type() == Value::UNDEFINED) {
|
||||
// backwards compatable
|
||||
node->faces = c.lookup_variable("triangles");
|
||||
if (node->faces.type() != Value::UNDEFINED) {
|
||||
PRINT("DEPRECATED: polyhedron(triangles=[]) will be removed in future releases. Use polyhedron(faces=[]) instead.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue