Showing the changes to interface/src/ui/Keyboard.cpp (1 of 9 files). Show all
Unified · Split
| @@ -743,7 +743,7 @@ void Keyboard::loadKeyboardFile(const QString& keyboardFile) { · 742 unmodified lines | ||
| 743 | 743 | properties.setRotation(quatFromVariant(anchorObject["rotation"].toVariant())); |
| 744 | 744 | |
| 745 | 745 | Anchor anchor; |
| 746 | − anchor.entityID = entityScriptingInterface->addEntity(properties, QString("local")); | |
| 746 | + anchor.entityID = entityScriptingInterface->addEntityInternal(properties, entity::HostType::LOCAL); | |
| 747 | 747 | anchor.originalDimensions = dimensions; |
| 748 | 748 | _anchor = anchor; |
| 749 | 749 | } |
| @@ -765,7 +765,7 @@ void Keyboard::loadKeyboardFile(const QString& keyboardFile) { · 15 unmodified lines | ||
| 765 | 765 | properties.setParentID(_anchor.entityID); |
| 766 | 766 | |
| 767 | 767 | BackPlate backPlate; |
| 768 | − backPlate.entityID = entityScriptingInterface->addEntity(properties, QString("local")); | |
| 768 | + backPlate.entityID = entityScriptingInterface->addEntityInternal(properties, entity::HostType::LOCAL); | |
| 769 | 769 | backPlate.dimensions = dimensions; |
| 770 | 770 | EntityPropertyFlags desiredProperties; |
| 771 | 771 | desiredProperties += PROP_LOCAL_POSITION; |
| @@ -822,7 +822,7 @@ void Keyboard::loadKeyboardFile(const QString& keyboardFile) { · 50 unmodified lines | ||
| 822 | 822 | properties.setTextures(QVariant(textureMap).toString()); |
| 823 | 823 | properties.getGrab().setGrabbable(false); |
| 824 | 824 | properties.setLocalRotation(quatFromVariant(keyboardKeyValue["localOrientation"].toVariant())); |
| 825 | − QUuid id = entityScriptingInterface->addEntity(properties, QString("local")); | |
| 825 | + QUuid id = entityScriptingInterface->addEntityInternal(properties, entity::HostType::LOCAL); | |
| 826 | 826 | key.setID(id); |
| 827 | 827 | key.setKeyString(keyString); |
| 828 | 828 | key.saveDimensionsAndLocalPosition(); |
| @@ -859,7 +859,7 @@ void Keyboard::loadKeyboardFile(const QString& keyboardFile) { · 30 unmodified lines | ||
| 859 | 859 | properties.setParentID(_anchor.entityID); |
| 860 | 860 | |
| 861 | 861 | TextDisplay textDisplay; |
| 862 | − textDisplay.entityID = entityScriptingInterface->addEntity(properties, QString("local")); | |
| 862 | + textDisplay.entityID = entityScriptingInterface->addEntityInternal(properties, entity::HostType::LOCAL); | |
| 863 | 863 | textDisplay.localPosition = localPosition; |
| 864 | 864 | textDisplay.dimensions = dimensions; |
| 865 | 865 | textDisplay.lineHeight = lineHeight; |