mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-16 04:06:04 +02:00
Removed copyTo and pasteFrom from ClipboardScriptingInterface (not useful in the end)
This commit is contained in:
parent
5b085a72cd
commit
41931ebd57
2 changed files with 0 additions and 22 deletions
|
@ -92,23 +92,4 @@ void ClipboardScriptingInterface::nudgeVoxel(float x, float y, float z, float s,
|
|||
s / (float)TREE_SCALE };
|
||||
|
||||
Application::getInstance()->nudgeVoxelsByVector(sourceVoxel, nudgeVecInTreeSpace);
|
||||
}
|
||||
|
||||
void ClipboardScriptingInterface::copyTo(float x, float y, float z, float s,
|
||||
const QString source, const QString destination) {
|
||||
StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
|
||||
StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
|
||||
|
||||
VoxelTreeElement* destinationNode = destinationTree->getVoxelAt(x, y, z, s);
|
||||
destinationTree->copyFromTreeIntoSubTree(sourceTree.data(), destinationNode);
|
||||
|
||||
}
|
||||
|
||||
void ClipboardScriptingInterface::pasteFrom(float x, float y, float z, float s,
|
||||
const QString source, const QString destination) {
|
||||
StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
|
||||
StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
|
||||
|
||||
VoxelTreeElement* sourceNode = sourceTree->getVoxelAt(x, y, z, s);
|
||||
destinationTree->copySubTreeIntoNewTree(sourceNode, destinationTree.data(), true);
|
||||
}
|
|
@ -38,9 +38,6 @@ public slots:
|
|||
|
||||
void nudgeVoxel(const VoxelDetail& sourceVoxel, const glm::vec3& nudgeVec);
|
||||
void nudgeVoxel(float x, float y, float z, float s, const glm::vec3& nudgeVec);
|
||||
|
||||
void copyTo(float x, float y, float z, float s, const QString source, const QString destination);
|
||||
void pasteFrom(float x, float y, float z, float s, const QString source, const QString destination);
|
||||
};
|
||||
|
||||
#endif // __interface__Clipboard__
|
||||
|
|
Loading…
Reference in a new issue