forked from qt-creator/qt-creator
Timeline: assert that render state is empty when we build node tree
Change-Id: If1ea56b5a885d17a38ab0cab29f7700b485a9b82 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "timelinerenderstate_p.h"
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
namespace Timeline {
|
||||
|
||||
@@ -139,6 +140,8 @@ void TimelineRenderState::assembleNodeTree(const TimelineModel *model, int defau
|
||||
int defaultRowOffset)
|
||||
{
|
||||
Q_D(TimelineRenderState);
|
||||
QTC_ASSERT(isEmpty(), return);
|
||||
|
||||
for (int pass = 0; pass < d->passes.length(); ++pass) {
|
||||
const TimelineRenderPass::State *passState = d->passes[pass];
|
||||
if (!passState)
|
||||
|
Reference in New Issue
Block a user