mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:49:46 +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 "EntityItem.h"
|
||||||
#include "EntityItemProperties.h"
|
#include "EntityItemProperties.h"
|
||||||
#include "EntityTypes.h"
|
#include "EntityTypes.h"
|
||||||
|
#include "EntitiesLogging.h"
|
||||||
|
|
||||||
#include "LightEntityItem.h"
|
#include "LightEntityItem.h"
|
||||||
#include "ModelEntityItem.h"
|
#include "ModelEntityItem.h"
|
||||||
|
@ -63,6 +64,9 @@ EntityTypes::EntityType EntityTypes::getEntityTypeFromName(const QString& name)
|
||||||
if (matchedTypeName != _nameToTypeMap.end()) {
|
if (matchedTypeName != _nameToTypeMap.end()) {
|
||||||
return matchedTypeName.value();
|
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;
|
return Unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue