mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-10 11:26:27 +02:00
Return entity IDs on paste
This commit is contained in:
parent
a922619ebc
commit
71768ef275
4 changed files with 7 additions and 6 deletions
|
@ -1683,8 +1683,8 @@ bool Application::importEntities(const QString& filename) {
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::pasteEntities(float x, float y, float z) {
|
QVector<EntityItemID> Application::pasteEntities(float x, float y, float z) {
|
||||||
_entityClipboard.sendEntities(&_entityEditSender, _entities.getTree(), x, y, z);
|
return _entityClipboard.sendEntities(&_entityEditSender, _entities.getTree(), x, y, z);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::initDisplay() {
|
void Application::initDisplay() {
|
||||||
|
|
|
@ -323,7 +323,7 @@ public slots:
|
||||||
void nodeKilled(SharedNodePointer node);
|
void nodeKilled(SharedNodePointer node);
|
||||||
void packetSent(quint64 length);
|
void packetSent(quint64 length);
|
||||||
|
|
||||||
void pasteEntities(float x, float y, float z);
|
QVector<EntityItemID> pasteEntities(float x, float y, float z);
|
||||||
bool exportEntities(const QString& filename, const QStringList& entityIDs);
|
bool exportEntities(const QString& filename, const QStringList& entityIDs);
|
||||||
bool exportEntities(const QString& filename, float x, float y, float z, float scale);
|
bool exportEntities(const QString& filename, float x, float y, float z, float scale);
|
||||||
bool importEntities(const QString& filename);
|
bool importEntities(const QString& filename);
|
||||||
|
|
|
@ -26,6 +26,6 @@ bool ClipboardScriptingInterface::importEntities(const QString& filename) {
|
||||||
return Application::getInstance()->importEntities(filename);
|
return Application::getInstance()->importEntities(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClipboardScriptingInterface::pasteEntities(float x, float y, float z, float s) {
|
QVector<EntityItemID> ClipboardScriptingInterface::pasteEntities(float x, float y, float z, float s) {
|
||||||
Application::getInstance()->pasteEntities(x, y, z);
|
return Application::getInstance()->pasteEntities(x, y, z);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,8 +23,9 @@ signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
bool importEntities(const QString& filename);
|
bool importEntities(const QString& filename);
|
||||||
|
bool exportEntities(const QString& filename, QStringList entityIDs);
|
||||||
bool exportEntities(const QString& filename, float x, float y, float z, float s);
|
bool exportEntities(const QString& filename, float x, float y, float z, float s);
|
||||||
void pasteEntities(float x, float y, float z, float s);
|
QVector<EntityItemID> pasteEntities(float x, float y, float z, float s);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_ClipboardScriptingInterface_h
|
#endif // hifi_ClipboardScriptingInterface_h
|
||||||
|
|
Loading…
Reference in a new issue