mirror of
https://github.com/4ian/GDevelop.git
synced 2026-10-12 02:01:17 +00:00
Fix a regression on undo and redo of the 2D editor (#8230)
- Don't show in changelog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user