History

Add ability to paste entities to any host type. Default "domain"

Kasen IO committed 6 years ago

Commit 12446bd1 parent 82638e46 files · +17 −9Browse files

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

Unified · Split

interface/src/Application.cpp+3−3
@@ -4065,7 +4065,7 @@ std::map<QString, QString> Application::prepareServerlessDomainContents(QUrl dom · 4064 unmodified lines
40654065 bool success = tmpTree->readFromByteArray(domainURL.toString(), data);
40664066 if (success) {
40674067 tmpTree->reaverageOctreeElements();
4068− tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), 0, 0, 0);
4068+ tmpTree->sendEntities(&_entityEditSender, getEntities()->getTree(), nullptr, 0, 0, 0);
40694069 }
40704070 std::map<QString, QString> namedPaths = tmpTree->getNamedPaths();
40714071
@@ -5545,8 +5545,8 @@ bool Application::importEntities(const QString& urlOrFilename, const bool isObse · 1473 unmodified lines
55455545 return success;
55465546 }
55475547
5548−QVector<EntityItemID> Application::pasteEntities(float x, float y, float z) {
5549− return _entityClipboard->sendEntities(&_entityEditSender, getEntities()->getTree(), x, y, z);
5548+QVector<EntityItemID> Application::pasteEntities(QString entityHostType, float x, float y, float z) {
5549+ return _entityClipboard->sendEntities(&_entityEditSender, getEntities()->getTree(), entityHostType, x, y, z);
55505550 }
55515551
55525552 void Application::init() {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t