Showing the changes to interface/src/scripting/ClipboardScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -103,13 +103,13 @@ void ClipboardScriptingInterface::nudgeVoxel(float x, float y, float z, float s, · 102 unmodified lines | ||
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | void ClipboardScriptingInterface::exportModels(const QString& filename, float x, float y, float z, float s) { |
| 106 | − Application::getInstance()->exportModels(filename, x / TREE_SCALE, y / TREE_SCALE, z / TREE_SCALE, s / TREE_SCALE); | |
| 106 | + Application::getInstance()->exportModels(filename, x / (float)TREE_SCALE, y / (float)TREE_SCALE, z / (float)TREE_SCALE, s / (float)TREE_SCALE); | |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | void ClipboardScriptingInterface::importModels(const QString& filename) { |
| 110 | 110 | Application::getInstance()->importModels(filename); |
| 111 | 111 | } |
| 112 | 112 | |
| 113 | −void ClipboardScriptingInterface::pasteModels() { | |
| 114 | − // TODO | |
| 113 | +void ClipboardScriptingInterface::pasteModels(float x, float y, float z, float s) { | |
| 114 | + Application::getInstance()->pasteModels(x, y, z); | |
| 115 | 115 | } |