deterministic id generator per module (#5811)
* deterministic id generator per module Signed-off-by: Jess Frazelle <github@jessfraz.com> * non Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * do not remake the planes if they are alreaady made; Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * do not remake the planes if they are alreaady made; Signed-off-by: Jess Frazelle <github@jessfraz.com> * clippy Signed-off-by: Jess Frazelle <github@jessfraz.com> --------- Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
@ -59,6 +59,7 @@ import {
|
||||
sceneInfra,
|
||||
codeManager,
|
||||
editorManager,
|
||||
rustContext,
|
||||
} from 'lib/singletons'
|
||||
import { getNodeFromPath } from 'lang/queryAst'
|
||||
import { getNodePathFromSourceRange } from 'lang/queryAstNodePathUtils'
|
||||
@ -587,6 +588,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: truncatedAst,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const sketchesInfo = getSketchesInfo({
|
||||
@ -1140,6 +1142,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: truncatedAst,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const sketch = sketchFromKclValue(execState.variables[varName], varName)
|
||||
@ -1328,6 +1331,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: truncatedAst,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const sketch = sketchFromKclValue(execState.variables[varName], varName)
|
||||
@ -1506,6 +1510,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: modded,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const sketch = sketchFromKclValue(execState.variables[varName], varName)
|
||||
@ -1690,6 +1695,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: modded,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const sketch = sketchFromKclValue(execState.variables[varName], varName)
|
||||
@ -2124,6 +2130,7 @@ export class SceneEntities {
|
||||
const { execState } = await executeAst({
|
||||
ast: truncatedAst,
|
||||
engineCommandManager: this.engineCommandManager,
|
||||
rustContext,
|
||||
isMock: true,
|
||||
})
|
||||
const variables = execState.variables
|
||||
|
Reference in New Issue
Block a user