Showing the changes to interface/src/VoxelSystem.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1746,11 +1746,11 @@ bool VoxelSystem::showAllLocalVoxelsOperation(VoxelNode* node, void* extraData) · 1745 unmodified lines | ||
| 1746 | 1746 | if (shouldRender) { |
| 1747 | 1747 | bool falseColorize = false; |
| 1748 | 1748 | if (falseColorize) { |
| 1749 | − node->setFalseColor(0,0,255); // fake | |
| 1749 | + node->setFalseColor(0,0,255); // false colorize | |
| 1750 | 1750 | } |
| 1751 | − // how does randomize color work? | |
| 1752 | − node->setDirtyBit(); // will this make it draw! | |
| 1753 | − node->markWithChangedTime(); // fake | |
| 1751 | + // These are both needed to force redraw... | |
| 1752 | + node->setDirtyBit(); | |
| 1753 | + node->markWithChangedTime(); | |
| 1754 | 1754 | } |
| 1755 | 1755 | |
| 1756 | 1756 | return true; // keep recursing! |
| @@ -1882,7 +1882,7 @@ bool VoxelSystem::hideAllSubTreeOperation(VoxelNode* node, void* extraData) { · 125 unmodified lines | ||
| 1882 | 1882 | args->nodesRemoved++; |
| 1883 | 1883 | bool falseColorize = false; |
| 1884 | 1884 | if (falseColorize) { |
| 1885 | − node->setFalseColor(255,0,0); // fake | |
| 1885 | + node->setFalseColor(255,0,0); // false colorize | |
| 1886 | 1886 | } else { |
| 1887 | 1887 | VoxelSystem* thisVoxelSystem = args->thisVoxelSystem; |
| 1888 | 1888 | thisVoxelSystem->_voxelsUpdated += thisVoxelSystem->forceRemoveNodeFromArrays(node); |
| @@ -1914,18 +1914,17 @@ bool VoxelSystem::showAllSubTreeOperation(VoxelNode* node, void* extraData) { · 25 unmodified lines | ||
| 1914 | 1914 | |
| 1915 | 1915 | args->nodesInside++; |
| 1916 | 1916 | |
| 1917 | − //printf("<<<<<<<<<<< showAllSubTreeOperation() >>>>>>>>>>>>>>>\n"); | |
| 1918 | − | |
| 1919 | 1917 | bool shouldRender = node->calculateShouldRender(&args->thisViewFrustum); |
| 1920 | 1918 | node->setShouldRender(shouldRender); |
| 1921 | 1919 | |
| 1922 | 1920 | if (shouldRender && !node->isKnownBufferIndex()) { |
| 1923 | 1921 | bool falseColorize = false; |
| 1924 | 1922 | if (falseColorize) { |
| 1925 | − node->setFalseColor(0,0,255); // fake | |
| 1923 | + node->setFalseColor(0,0,255); // false colorize | |
| 1926 | 1924 | } |
| 1927 | − node->setDirtyBit(); // will this make it draw! | |
| 1928 | − node->markWithChangedTime(); // fake | |
| 1925 | + // These are both needed to force redraw... | |
| 1926 | + node->setDirtyBit(); | |
| 1927 | + node->markWithChangedTime(); | |
| 1929 | 1928 | } |
| 1930 | 1929 | |
| 1931 | 1930 | return true; // keep recursing! |
| @@ -1985,7 +1984,6 @@ bool VoxelSystem::hideOutOfViewOperation(VoxelNode* node, void* extraData) { · 53 unmodified lines | ||
| 1985 | 1984 | // if this node is fully INSIDE the view, but previously INTERSECTED and/or was OUTSIDE the last view, then |
| 1986 | 1985 | // we need to show it. Additionally we know that ALL of it's children are also fully INSIDE so we can recurse |
| 1987 | 1986 | // the children and simply mark them as visible (as appropriate based on LOD) |
| 1988 | − //printf("<<<<<<<<<<< HERE!!!!! >>>>>>>>>>>>>>>\n"); | |
| 1989 | 1987 | args->tree->recurseNodeWithOperation(node, showAllSubTreeOperation, args); |
| 1990 | 1988 | |
| 1991 | 1989 | return false; |