Commit 53ae3828 authored by claes's avatar claes

Syntax check of object name added

parent 922a6fe2
...@@ -403,6 +403,11 @@ ref_wblnode wb_wblnode::get_o_lch() ...@@ -403,6 +403,11 @@ ref_wblnode wb_wblnode::get_o_lch()
void wb_wblnode::build( bool recursive) void wb_wblnode::build( bool recursive)
{ {
if ( !o->is_built) { if ( !o->is_built) {
// Check name
wb_name n = wb_name(name());
if (!n)
m_vrep->error( "Object name syntax error", getFileName(), line_number);
o->m_oid.vid = m_vrep->vid(); o->m_oid.vid = m_vrep->vid();
if ( isClassDef()) { if ( isClassDef()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment