Skip to content

Commit

Permalink
Make thread check in QgsPointCloudLayer::dataProvider() fatal
Browse files Browse the repository at this point in the history
After the last 3 commits there should be no place left that calls this
from a worker thread.
  • Loading branch information
dvdkon committed Jan 13, 2025
1 parent 3f8495a commit a3866f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/pointcloud/qgspointcloudlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ QgsAbstractProfileGenerator *QgsPointCloudLayer::createProfileGenerator( const Q

QgsPointCloudDataProvider *QgsPointCloudLayer::dataProvider()
{
// BAD! 2D rendering of point clouds is NOT thread safe
QGIS_PROTECT_QOBJECT_THREAD_ACCESS_NON_FATAL
QGIS_PROTECT_QOBJECT_THREAD_ACCESS

return mDataProvider.get();
}
Expand Down

0 comments on commit a3866f4

Please sign in to comment.