mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
more verbose messaging about incorrect entity types
This commit is contained in:
parent
1a37653364
commit
1306417c8e
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