History

Merge pull request #497 from kasenvr/feature/paste-entities-host-type

Add ability to paste entities to any host type

kasenvr committed 6 years ago

Commit bfe08f22 parents 11ce437 e1ab52d6 files · +17 −8Browse files

Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all

Unified · Split

interface/src/Application.cpp+3−3
@@ -4070,7 +4070,7 @@ std::map<QString, QString> Application::prepareServerlessDomainContents(QUrl dom · 4069 unmodified lines
40704070 bool success = tmpTree->readFromByteArray(domainURL.toString(), data);
40714071 if (success) {
40724072 tmpTree->reaverageOctreeElements();
4073− tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), 0, 0, 0);
4073+ tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), "domain", 0, 0, 0);
40744074 }
40754075 std::map<QString, QString> namedPaths = tmpTree->getNamedPaths();
40764076
@@ -5550,8 +5550,8 @@ bool Application::importEntities(const QString& urlOrFilename, const bool isObse · 1473 unmodified lines
55505550 return success;
55515551 }
55525552
5553−QVector<EntityItemID> Application::pasteEntities(float x, float y, float z) {
5554− return _entityClipboard->sendEntities(&_entityEditSender, getEntities()->getTree(), x, y, z);
5553+QVector<EntityItemID> Application::pasteEntities(const QString& entityHostType, float x, float y, float z) {
5554+ return _entityClipboard->sendEntities(&_entityEditSender, getEntities()->getTree(), entityHostType, x, y, z);
55555555 }
55565556
55575557 void Application::init() {