~holger-seelig/titania/0.8

« back to all changes in this revision

Viewing changes to libtitania-x3d/Titania/X3D/Parser/Parser.cpp

  • Committer: Holger Seelig
  • Date: 2015-04-15 10:56:08 UTC
  • Revision ID: holger.seelig@yahoo.de-20150415105608-dph125xt88vojqs0
PROTO statements can now have an empty body like freewrl it does.

Show diffs side-by-side

added added

removed removed

Lines of Context:
886
886
        if (rootNodeStatement (_rootNodeStatement))
887
887
                addRootNode (std::move (_rootNodeStatement));
888
888
 
889
 
        else
890
 
        {
891
 
                if (getBrowser () -> isStrict ())
892
 
                        throw Error <INVALID_X3D> ("Expected root node statement inside PROTO body.");
893
 
        }
894
 
 
895
889
        statements ();
896
890
}
897
891