@babylonjs/loaders 7.54.0 → 7.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -927,6 +927,28 @@ const gltfToFlowGraphMapping = {
927
927
  },
928
928
  },
929
929
  },
930
+ "variable/setMultiple": {
931
+ blocks: ["FlowGraphSetVariableBlock" /* FlowGraphBlockNames.SetVariable */],
932
+ configuration: {
933
+ variables: {
934
+ name: "variables",
935
+ gltfType: "number",
936
+ flowGraphType: "string",
937
+ inOptions: true,
938
+ dataTransformer(index, parser) {
939
+ return [index[0].map((i) => parser.getVariableName(i))];
940
+ },
941
+ },
942
+ },
943
+ extraProcessor(_gltfBlock, _declaration, _mapping, parser, serializedObjects) {
944
+ // variable/get configuration
945
+ const serializedGetVariable = serializedObjects[0];
946
+ serializedGetVariable.dataInputs.forEach((input) => {
947
+ input.name = parser.getVariableName(+input.name);
948
+ });
949
+ return serializedObjects;
950
+ },
951
+ },
930
952
  "variable/interpolate": {
931
953
  blocks: [
932
954
  "FlowGraphInterpolationBlock" /* FlowGraphBlockNames.ValueInterpolation */,
@@ -1363,7 +1385,7 @@ const gltfToFlowGraphMapping = {
1363
1385
  },
1364
1386
  extraProcessor(_gltfBlock, _declaration, _mapping, _arrays, serializedObjects) {
1365
1387
  const serializedObject = serializedObjects[0];
1366
- serializedObject.signalInputs.forEach((input) => {
1388
+ serializedObject.dataInputs.forEach((input) => {
1367
1389
  if (input.name !== "default" && input.name !== "case") {
1368
1390
  input.name = "in_" + input.name;
1369
1391
  }