mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
initial changes to incorporate snap model
This commit is contained in:
parent
dc5f29aa58
commit
576d683d3b
3 changed files with 3 additions and 4 deletions
|
@ -266,8 +266,6 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties
|
|||
bool success = true;
|
||||
if (_entityTree) {
|
||||
_entityTree->withWriteLock([&] {
|
||||
propertiesWithSimID.getType();
|
||||
qCDebug(entities) << "check 2 type: " << propertiesWithSimID.getType();
|
||||
EntityItemPointer entity = _entityTree->addEntity(id, propertiesWithSimID);
|
||||
if (entity) {
|
||||
if (propertiesWithSimID.queryAACubeRelatedPropertyChanged()) {
|
||||
|
|
|
@ -514,7 +514,6 @@ EntityItemPointer EntityTree::addEntity(const EntityItemID& entityID, const Enti
|
|||
|
||||
// construct the instance of the entity
|
||||
EntityTypes::EntityType type = props.getType();
|
||||
qCDebug(entities) << "check 3 type: " << type;
|
||||
result = EntityTypes::constructEntityItem(type, entityID, props);
|
||||
|
||||
if (result) {
|
||||
|
|
|
@ -91,7 +91,9 @@ EntityItemPointer EntityTypes::constructEntityItem(EntityType entityType, const
|
|||
EntityItemPointer newEntityItem = NULL;
|
||||
EntityTypeFactory factory = NULL;
|
||||
if (entityType >= 0 && entityType <= LAST) {
|
||||
qCDebug(entities) << "check 4 type: " << entityType << ", name: " << properties.getName();
|
||||
if (getEntityTypeName(entityType) == "Image") {
|
||||
entityType = getEntityTypeFromName("Web");
|
||||
}
|
||||
factory = _factories[entityType];
|
||||
}
|
||||
if (factory) {
|
||||
|
|
Loading…
Reference in a new issue