Skip to content

Commit 353e306

Browse files
Copilotjaccz
andcommitted
Fix PictGenerate to clear previous results before generating new ones
Co-authored-by: jaccz <[email protected]>
1 parent a508933 commit 353e306

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

api/model.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,9 @@ void Model::Generate()
669669
for( ParamCollection::iterator ip = m_parameters.begin(); ip != m_parameters.end(); ++ip )
670670
DOUT( ( *ip )->GetName() << L", order: " << ( *ip )->GetOrder() << endl );
671671

672+
// Clear previous results before generating new ones
673+
m_results.clear();
674+
672675
switch( m_generationType )
673676
{
674677
case GenerationType::MixedOrder:

libpict.so

153 KB
Binary file not shown.

0 commit comments

Comments
 (0)