History

Removed copyTo and pasteFrom from ClipboardScriptingInterface (not useful in the end)

Atlante45 committed 12 years ago

Commit 41931eb1 parent 5b085a72 files · +0 −22Browse files

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

Unified · Split

interface/src/ClipboardScriptingInterface.cpp+0−19
@@ -92,23 +92,4 @@ void ClipboardScriptingInterface::nudgeVoxel(float x, float y, float z, float s, · 91 unmodified lines
9292 s / (float)TREE_SCALE };
9393
9494 Application::getInstance()->nudgeVoxelsByVector(sourceVoxel, nudgeVecInTreeSpace);
95−}
96−
97−void ClipboardScriptingInterface::copyTo(float x, float y, float z, float s,
98− const QString source, const QString destination) {
99− StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
100− StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
101−
102− VoxelTreeElement* destinationNode = destinationTree->getVoxelAt(x, y, z, s);
103− destinationTree->copyFromTreeIntoSubTree(sourceTree.data(), destinationNode);
104−
105−}
106−
107−void ClipboardScriptingInterface::pasteFrom(float x, float y, float z, float s,
108− const QString source, const QString destination) {
109− StrongVoxelTreePointer sourceTree = LocalVoxelsList::getInstance()->getTree(source);
110− StrongVoxelTreePointer destinationTree = LocalVoxelsList::getInstance()->getTree(destination);
111−
112− VoxelTreeElement* sourceNode = sourceTree->getVoxelAt(x, y, z, s);
113− destinationTree->copySubTreeIntoNewTree(sourceNode, destinationTree.data(), true);
11495 }