mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
don't allow leading digits in group names
This commit is contained in:
parent
2c275a92fa
commit
a4c59b67e8
@ -437,6 +437,12 @@ make_nice_name(const string &str) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!str.empty() && isdigit(str[0])) {
|
||||
// If the name begins with a digit, we must make it begin with
|
||||
// something else, like for instance an underscore.
|
||||
result = '_' + result;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user