mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:37:14 +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);
|
glTranslatef(_position.x, _position.y, _position.z);
|
||||||
glScalef(_size, _size, _size);
|
glScalef(_size, _size, _size);
|
||||||
|
|
||||||
qDebug() << "[DEBUG] " << voxelSystem->getVoxelsRendered() << " "
|
// We only force the redraw when the clipboard content has changed
|
||||||
<< clipboard->getOctreeElementsCount();
|
|
||||||
|
|
||||||
// TODO : replace that hack to get the preview working corectly
|
|
||||||
if (lastVoxelCount != clipboard->getOctreeElementsCount()) {
|
if (lastVoxelCount != clipboard->getOctreeElementsCount()) {
|
||||||
voxelSystem->forceRedrawEntireTree();
|
voxelSystem->forceRedrawEntireTree();
|
||||||
lastVoxelCount = clipboard->getOctreeElementsCount();
|
lastVoxelCount = clipboard->getOctreeElementsCount();
|
||||||
|
|
Loading…
Reference in a new issue