Skip to content

Commit

Permalink
Merge pull request #13 from iangilman/density
Browse files Browse the repository at this point in the history
resetting particle count in automode with generator source
  • Loading branch information
anvaka authored Mar 6, 2018
2 parents ead203e + 88a193b commit 05026b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/autoMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function next(options) {
}

if (source === 'generator') {
scene.setParticleCount(10000);
scene.vectorFieldEditorState.setCode(wrapVectorField(generateFunction()));
} else if (source === 'presets') {
if (!incomingPresetsQueue || !incomingPresetsQueue.length) {
Expand Down

0 comments on commit 05026b4

Please sign in to comment.