Fixed clipboard not being previewed

This commit is contained in:
atlante45 2013-08-21 10:31:56 -07:00
parent 3eb5ace715
commit 27b0338294
2 changed files with 4 additions and 2 deletions

View file

@ -70,7 +70,9 @@ void VoxelImporter::reset() {
}
int VoxelImporter::exec() {
if (!_initialized) {
reset();
if (_initialized) {
_voxelSystem->init();
_importViewFrustum.setKeyholeRadius(100000.0f);
_importViewFrustum.calculate();
@ -78,7 +80,6 @@ int VoxelImporter::exec() {
_initialized = true;
}
reset();
int ret = _importDialog.exec();
if (!ret) {

View file

@ -1314,6 +1314,7 @@ void VoxelSystem::createSphere(float r,float xc, float yc, float zc, float s, bo
void VoxelSystem::copySubTreeIntoNewTree(VoxelNode* startNode, VoxelSystem* destinationTree, bool rebaseToRoot) {
_tree->copySubTreeIntoNewTree(startNode, destinationTree->_tree, rebaseToRoot);
destinationTree->setupNewVoxelsForDrawing();
}
void VoxelSystem::copySubTreeIntoNewTree(VoxelNode* startNode, VoxelTree* destinationTree, bool rebaseToRoot) {