added optional block following shape references which can contain transforms or materials specific to the shape instance
git-svn-id: svn://anubis/fart/trunk@312 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
1 parent
f67707e666
commit
e5e4f991fb
2 files changed
+44
-8
No files matched your search
+16
-1
@@ -458,9 +458,24 @@ shape_definition: DEFINE SHAPE IDENTIFIER shape {
|
||||
}
|
||||
;
|
||||
|
||||
shape_ref: SHAPE IDENTIFIER { $$ = new ShapeRefNode($2->getString()); }
|
||||
shape_ref: SHAPE IDENTIFIER shape_ref_more {
|
||||
$$ = new ShapeRefNode($2->getString());
|
||||
$$->addChildren($3);
|
||||
}
|
||||
;
|
||||
|
||||
shape_ref_more: /* empty */
|
||||
| LCURLY shape_ref_items RCURLY { $$ = $2; }
|
||||
;
|
||||
|
||||
shape_ref_items: /* empty */
|
||||
| shape_item shape_ref_items {
|
||||
$$ = new ItemsNode();
|
||||
$$->addChild($1);
|
||||
$$->addChildren($2);
|
||||
}
|
||||
;
|
||||
|
||||
shape_item: material { $$ = $1; }
|
||||
| material_ref { $$ = $1; }
|
||||
| transform { $$ = $1; }
|
||||
|
||||
Reference in new issue
Block a user