mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
Alter references per suggestion.
This commit is contained in:
parent
d9e0605b4d
commit
d881e1e3c2
2 changed files with 6 additions and 6 deletions
|
@ -60,13 +60,13 @@ bool ClipboardScriptingInterface::importEntities(
|
|||
return retVal;
|
||||
}
|
||||
|
||||
QVector<EntityItemID> ClipboardScriptingInterface::pasteEntities(glm::vec3 position, QString entityHostType) {
|
||||
QVector<EntityItemID> ClipboardScriptingInterface::pasteEntities(const glm::vec3& position, const QString& entityHostType) {
|
||||
QVector<EntityItemID> retVal;
|
||||
BLOCKING_INVOKE_METHOD(qApp, "pasteEntities",
|
||||
Q_RETURN_ARG(QVector<EntityItemID>, retVal),
|
||||
Q_ARG(QString, entityHostType),
|
||||
Q_ARG(float, position.x),
|
||||
Q_ARG(float, position.y),
|
||||
Q_ARG(float, position.z));
|
||||
Q_ARG(const QString&, entityHostType),
|
||||
Q_ARG(const float&, position.x),
|
||||
Q_ARG(const float&, position.y),
|
||||
Q_ARG(const float&, position.z));
|
||||
return retVal;
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ public:
|
|||
* @returns {Uuid[]} The IDs of the new entities that were created as a result of the paste operation. If entities couldn't
|
||||
* be created then an empty array is returned.
|
||||
*/
|
||||
Q_INVOKABLE QVector<EntityItemID> pasteEntities(glm::vec3 position, QString entityHostType = "domain");
|
||||
Q_INVOKABLE QVector<EntityItemID> pasteEntities(const glm::vec3& position, const QString& entityHostType = "domain");
|
||||
};
|
||||
|
||||
#endif // hifi_ClipboardScriptingInterface_h
|
||||
|
|
Loading…
Reference in a new issue