File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -527,6 +527,16 @@ void QgsPointCloudClassifiedRendererWidget::addCategories()
527527 const QgsPointCloudCategoryList defaultLayerCategories = isClassificationAttribute ? QgsPointCloudRendererRegistry::classificationAttributeCategories ( mLayer ) : QgsPointCloudCategoryList ();
528528
529529 mBlockChangedSignal = true ;
530+
531+ // If it is classification and we lack stats, lets use the full set of default categories
532+ if ( isClassificationAttribute && providerCategories.isEmpty () )
533+ {
534+ for ( const QgsPointCloudCategory &c : defaultLayerCategories )
535+ {
536+ providerCategories.append ( c.value () );
537+ }
538+ }
539+
530540 for ( const int &providerCategory : std::as_const ( providerCategories ) )
531541 {
532542 // does this category already exist?
You can’t perform that action at this time.
0 commit comments