Skip to content
Snippets Groups Projects
Commit e39a7845 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix Box field

parent 54c56a17
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -1104,6 +1104,13 @@ Affectation :
#endif
Free($6);
}
| tField '[' FExpr ']' tAFFECT tBox tEND
{
#if defined(HAVE_MESH)
if(!GModel::current()->getFields()->newField((int)$3, "Box"))
yymsg(0, "Cannot create field %i of type '%s'", (int)$3, "Box");
#endif
}
| tField '[' FExpr ']' tAFFECT tCylinder tEND
{
#if defined(HAVE_MESH)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment