Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
funwithtriangles committed Dec 18, 2024
1 parent e322ad1 commit b7e7666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/engine/src/store/selectors/getSketchParamValues.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EngineState } from '@store/types'

// Get the values of the parameters of a sketch, dealing with child nodes
export const getSketchParamValues = (state: EngineState, sketchId: string) => {
const { sketches, nodeValues, nodes } = state
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand All @@ -12,6 +13,7 @@ export const getSketchParamValues = (state: EngineState, sketchId: string) => {
let value

if (valueType === 'vector3') {
// Return an array of values for vector3
const childNodeIds = nodes[id].childNodeIds
value = childNodeIds.map((childNodeId) => nodeValues[childNodeId])
} else {
Expand Down

0 comments on commit b7e7666

Please sign in to comment.