Skip to content

Commit df77664

Browse files
committed
Fix need to rebuild opengl data after alpha changes
1 parent 9e2a23b commit df77664

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

libs/opengl/include/mrpt/opengl/CPointCloud.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ namespace mrpt::opengl
2323
*
2424
* To load from a points-map, CPointCloud::loadFromPointsMap().
2525
*
26-
* This class uses smart optimizations while rendering to efficiently draw
27-
* clouds of millions of points, using octrees.
28-
*
2926
* ![mrpt::opengl::CPointCloud](preview_CPointCloud.png)
3027
*
3128
* \sa opengl::CPlanarLaserScan, opengl::Scene,

libs/opengl/include/mrpt/opengl/CPointCloudColoured.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ class CPointCloudColoured :
146146
{
147147
pt.A = alpha_channel;
148148
}
149+
markAllPointsAsNew();
149150
}
150151
/** Like \c getPointColor but without checking for out-of-index errors */
151152
void getPointColor_fast(size_t index, float& R, float& G, float& B) const

0 commit comments

Comments
 (0)