Final fix for clipboard preview

This commit is contained in:
Atlante45 2014-02-21 15:47:40 -08:00
parent e8c9dc50d0
commit e66ec6b702

View file

@ -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();