auto-git:
[change] src/app/App.tsx [change] tests/domain/terrains.test.ts [change] tests/unit/terrain-foundation.integration.test.tsx
This commit is contained in:
@@ -2816,11 +2816,12 @@ export function App({
|
||||
terrainList
|
||||
);
|
||||
const selectedPath = getSelectedPath(editorState.selection, pathList);
|
||||
const splineCorridorJunctionCandidates = detectSplineCorridorJunctionCandidates({
|
||||
paths: pathList,
|
||||
junctions: editorState.document.splineCorridorJunctions,
|
||||
terrains: terrainList.filter((terrain) => terrain.enabled)
|
||||
});
|
||||
const splineCorridorJunctionCandidates =
|
||||
detectSplineCorridorJunctionCandidates({
|
||||
paths: pathList,
|
||||
junctions: editorState.document.splineCorridorJunctions,
|
||||
terrains: terrainList.filter((terrain) => terrain.enabled)
|
||||
});
|
||||
const selectedPathJunctionCandidates =
|
||||
selectedPath === null
|
||||
? []
|
||||
@@ -9650,10 +9651,7 @@ export function App({
|
||||
|
||||
const handleTerrainPaintLayerChange = (value: string) => {
|
||||
setActiveTerrainPaintLayerIndex(
|
||||
clampTerrainPaintLayerIndex(
|
||||
Number(value),
|
||||
selectedTerrain?.layers.length
|
||||
)
|
||||
clampTerrainPaintLayerIndex(Number(value), selectedTerrain?.layers.length)
|
||||
);
|
||||
};
|
||||
|
||||
@@ -9994,7 +9992,9 @@ export function App({
|
||||
|
||||
const handleDeleteSplineCorridorJunction = (junctionId: string) => {
|
||||
try {
|
||||
store.executeCommand(createDeleteSplineCorridorJunctionCommand(junctionId));
|
||||
store.executeCommand(
|
||||
createDeleteSplineCorridorJunctionCommand(junctionId)
|
||||
);
|
||||
setStatusMessage("Deleted spline corridor junction.");
|
||||
} catch (error) {
|
||||
setStatusMessage(getErrorMessage(error));
|
||||
@@ -21491,7 +21491,10 @@ export function App({
|
||||
<div className="terrain-layer-list">
|
||||
{selectedTerrain.layers.map((layer, layerIndex) => (
|
||||
<div key={layerIndex} className="form-field">
|
||||
<label className="label" htmlFor={`terrain-layer-material-${layerIndex}`}>
|
||||
<label
|
||||
className="label"
|
||||
htmlFor={`terrain-layer-material-${layerIndex}`}
|
||||
>
|
||||
{getTerrainLayerLabel(layerIndex)}
|
||||
</label>
|
||||
<div className="inline-actions">
|
||||
@@ -21518,7 +21521,9 @@ export function App({
|
||||
type="button"
|
||||
data-testid={`terrain-layer-remove-${layerIndex}`}
|
||||
disabled={layerIndex === 0}
|
||||
onClick={() => handleDeleteTerrainLayer(layerIndex)}
|
||||
onClick={() =>
|
||||
handleDeleteTerrainLayer(layerIndex)
|
||||
}
|
||||
>
|
||||
Remove
|
||||
</button>
|
||||
@@ -22488,10 +22493,9 @@ export function App({
|
||||
handlePathRoadChange(
|
||||
{
|
||||
...selectedPath.road,
|
||||
heightOffset:
|
||||
normalizeScenePathRoadHeightOffset(
|
||||
Number(event.currentTarget.value)
|
||||
)
|
||||
heightOffset: normalizeScenePathRoadHeightOffset(
|
||||
Number(event.currentTarget.value)
|
||||
)
|
||||
},
|
||||
"Updated Path road height offset."
|
||||
)
|
||||
@@ -22545,7 +22549,8 @@ export function App({
|
||||
</label>
|
||||
{(["left", "right"] as const).map((side) => {
|
||||
const edge = selectedPath.road.edges[side];
|
||||
const edgeLabel = side === "left" ? "Left Edge" : "Right Edge";
|
||||
const edgeLabel =
|
||||
side === "left" ? "Left Edge" : "Right Edge";
|
||||
|
||||
return (
|
||||
<div className="form-section" key={side}>
|
||||
@@ -22717,10 +22722,7 @@ export function App({
|
||||
{selectedPathJunctionCandidates
|
||||
.slice(0, 6)
|
||||
.map((candidate, candidateIndex) => (
|
||||
<div
|
||||
className="compact-card"
|
||||
key={candidate.id}
|
||||
>
|
||||
<div className="compact-card" key={candidate.id}>
|
||||
<div className="compact-card__header">
|
||||
<strong>
|
||||
Candidate {candidateIndex + 1}
|
||||
@@ -23337,8 +23339,8 @@ export function App({
|
||||
Edit authored point positions directly. Keep at least{" "}
|
||||
{MIN_SCENE_PATH_POINT_COUNT} points. <code>Shift+W</code>{" "}
|
||||
adds a point after the selected control point, or appends
|
||||
to the end when the whole path is selected. When a point is
|
||||
selected, <code>Shift+D</code> adds one and starts grab
|
||||
to the end when the whole path is selected. When a point
|
||||
is selected, <code>Shift+D</code> adds one and starts grab
|
||||
mode.
|
||||
</div>
|
||||
{selectedPathPointIndex === null ? null : (
|
||||
|
||||
Reference in New Issue
Block a user