Skip to content
Browse files

Fix memory leak when no model point positions are available

  • Loading branch information
nyalldawson committed Aug 21, 2020
1 parent a27930c commit bf1380125121559e6d20e1c92d3313c702b22f9c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/3d/symbols/qgspoint3dsymbol_p.cpp
@@ -454,6 +454,9 @@ void QgsModelPoint3DSymbolHandler::addSceneEntities( const Qgs3DMapSettings &map

void QgsModelPoint3DSymbolHandler::addMeshEntities( const Qgs3DMapSettings &map, const QVector<QVector3D> &positions, const QgsPoint3DSymbol *symbol, Qt3DCore::QEntity *parent, bool are_selected )
if ( positions.empty() )

// build the default material
QgsMaterialContext materialContext;
materialContext.setIsSelected( are_selected );

0 comments on commit bf13801

Please sign in to comment.
You can’t perform that action at this time.