Commit 4f79e8b3 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

avoid crash on show render objects if there are none

parent 5c4ffb91
......@@ -86,7 +86,7 @@ public:
public slots:
QString version() { return QString("1.0"); };
QString renderObjectsInfo(bool _outputShaderInfo) { return dumpCurrentRenderObjectsToString(&sortedObjects_[0],_outputShaderInfo); };
QString renderObjectsInfo(bool _outputShaderInfo) { return sortedObjects_.empty() ? "" : dumpCurrentRenderObjectsToString(&sortedObjects_[0],_outputShaderInfo); };
private slots:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment