small bug
This commit is contained in:
@ -1473,12 +1473,13 @@ export class SceneEntities {
|
|||||||
|
|
||||||
sceneInfra.setCallbacks({
|
sceneInfra.setCallbacks({
|
||||||
onMove: async (args) => {
|
onMove: async (args) => {
|
||||||
|
const firstProfileIndex = Number(updatedSketchNodePaths[0][1][0])
|
||||||
const nodePathWithCorrectedIndexForTruncatedAst =
|
const nodePathWithCorrectedIndexForTruncatedAst =
|
||||||
structuredClone(updatedEntryNodePath)
|
structuredClone(updatedEntryNodePath)
|
||||||
|
|
||||||
nodePathWithCorrectedIndexForTruncatedAst[1][0] =
|
nodePathWithCorrectedIndexForTruncatedAst[1][0] =
|
||||||
Number(nodePathWithCorrectedIndexForTruncatedAst[1][0]) -
|
Number(nodePathWithCorrectedIndexForTruncatedAst[1][0]) -
|
||||||
Number(planeNodePath[1][0]) -
|
firstProfileIndex
|
||||||
1
|
|
||||||
const _node = getNodeFromPath<VariableDeclaration>(
|
const _node = getNodeFromPath<VariableDeclaration>(
|
||||||
truncatedAst,
|
truncatedAst,
|
||||||
nodePathWithCorrectedIndexForTruncatedAst,
|
nodePathWithCorrectedIndexForTruncatedAst,
|
||||||
|
|||||||
Reference in New Issue
Block a user