Fix a regression on undo and redo of the 2D editor (#8230)

- Don't show in changelog
This commit is contained in:
D8H
2026-02-09 19:24:43 +01:00
committed by GitHub
parent e27319991f
commit ec699d87b3
+10 -2
View File
@@ -994,7 +994,11 @@ export default class SceneEditor extends React.Component<Props, State> {
this.instancesSelection.clearSelection();
this.setState(
{
history: undo(this.state.history, this.props.initialInstances),
history: undo(
this.state.history,
this.props.initialInstances,
this.props.project
),
},
() => {
// /!\ Force the instances editor to destroy and mount again the
@@ -1013,7 +1017,11 @@ export default class SceneEditor extends React.Component<Props, State> {
this.instancesSelection.clearSelection();
this.setState(
{
history: redo(this.state.history, this.props.initialInstances),
history: redo(
this.state.history,
this.props.initialInstances,
this.props.project
),
},
() => {
// /!\ Force the instances editor to destroy and mount again the