From e66ec6b702e603b34a1326859c90046cba8b8117 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Fri, 21 Feb 2014 15:47:40 -0800 Subject: [PATCH] Final fix for clipboard preview --- interface/src/ui/ClipboardOverlay.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/interface/src/ui/ClipboardOverlay.cpp b/interface/src/ui/ClipboardOverlay.cpp index 12c72c7690..7eee318ec9 100644 --- a/interface/src/ui/ClipboardOverlay.cpp +++ b/interface/src/ui/ClipboardOverlay.cpp @@ -38,10 +38,7 @@ void ClipboardOverlay::render() { glTranslatef(_position.x, _position.y, _position.z); glScalef(_size, _size, _size); - qDebug() << "[DEBUG] " << voxelSystem->getVoxelsRendered() << " " - << clipboard->getOctreeElementsCount(); - - // TODO : replace that hack to get the preview working corectly + // We only force the redraw when the clipboard content has changed if (lastVoxelCount != clipboard->getOctreeElementsCount()) { voxelSystem->forceRedrawEntireTree(); lastVoxelCount = clipboard->getOctreeElementsCount();