mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 05:53:29 +02:00
Final fix for clipboard preview
This commit is contained in:
parent
e8c9dc50d0
commit
e66ec6b702
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue