mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 10:33:40 +02:00
Merge pull request #8061 from imgntn/entityaddtypeserrors
More verbose messaging about incorrect case in entity types
This commit is contained in:
commit
b1de94f39d
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "EntityItem.h"
|
||||
#include "EntityItemProperties.h"
|
||||
#include "EntityTypes.h"
|
||||
#include "EntitiesLogging.h"
|
||||
|
||||
#include "LightEntityItem.h"
|
||||
#include "ModelEntityItem.h"
|
||||
|
@ -63,6 +64,9 @@ EntityTypes::EntityType EntityTypes::getEntityTypeFromName(const QString& name)
|
|||
if (matchedTypeName != _nameToTypeMap.end()) {
|
||||
return matchedTypeName.value();
|
||||
}
|
||||
if (name.size() > 0 && name[0].isLower()) {
|
||||
qCDebug(entities) << "Entity types must start with an uppercase letter. Please change the type" << name;
|
||||
}
|
||||
return Unknown;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue