Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed May 1, 2024
1 parent a57304a commit c690261
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const randomizeTypesConfig = () => {
<input type="number" min="0" step="1" v-model="randomTypesConfig.TYPES_COUNT" />
</div>

<div>
<div v-show="!ignoreSubMatricesOnCross">
<input-header
name="Radius"
tooltip="Radius of each type of particles."
Expand All @@ -80,7 +80,7 @@ const randomizeTypesConfig = () => {
</div>
</div>

<div>
<div v-show="!ignoreSubMatricesOnCross">
<input-header
name="Frequencies"
tooltip="Ratio of the number of particles that will be generated on refill."
Expand Down Expand Up @@ -133,7 +133,7 @@ const randomizeTypesConfig = () => {
</div>
</div>

<div>
<div v-show="!ignoreSubMatricesOnCross">
<input-header
name="Links Count"
tooltip="Connection limit map shows the maximum number of links for particles of each type."
Expand Down
6 changes: 3 additions & 3 deletions src/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ export const useConfigStore = defineStore("config", () => {
const randomizeTypesConfig = (skipSubMatricesOnCross?: number) => {
const newConfig = createRandomTypesConfig(randomTypesConfig.value);

if (!randomTypesConfig.value.USE_FREQUENCY_BOUNDS) {
if (!randomTypesConfig.value.USE_FREQUENCY_BOUNDS || skipSubMatricesOnCross !== undefined) {
copyConfigListValue(typesConfigRaw.FREQUENCIES, newConfig.FREQUENCIES, 1);
}

if (!randomTypesConfig.value.USE_RADIUS_BOUNDS) {
if (!randomTypesConfig.value.USE_RADIUS_BOUNDS || skipSubMatricesOnCross !== undefined) {
copyConfigListValue(typesConfigRaw.RADIUS, newConfig.RADIUS, 1);
}

Expand All @@ -233,7 +233,7 @@ export const useConfigStore = defineStore("config", () => {
copyConfigMatrixValue(typesConfigRaw.LINK_GRAVITY, newConfig.LINK_GRAVITY, 0, skipSubMatricesOnCross);
}

if (!randomTypesConfig.value.USE_LINK_BOUNDS) {
if (!randomTypesConfig.value.USE_LINK_BOUNDS || skipSubMatricesOnCross !== undefined) {
copyConfigListValue(typesConfigRaw.LINKS, newConfig.LINKS, 0);
}

Expand Down

0 comments on commit c690261

Please sign in to comment.