Skip to content

Commit

Permalink
[Fix][ModelViewer] Model remove confirmation dialog shows entity name (
Browse files Browse the repository at this point in the history
…#13)

Co-authored-by: Rafael Caro <[email protected]>
  • Loading branch information
Racafe92 and Rafael Caro authored Dec 21, 2023
1 parent 1d5e9f4 commit e6bba29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,9 @@ private void DeleteButton_Released(object sender, EventArgs e)
}

var localization = this.xrvService.Localization;
var confirmDialogTitle = this.modelEntity.Tag;
var confirmDialog = this.xrvService.WindowsSystem.ShowConfirmationDialog(
() => this.modelEntity.Name,
() => confirmDialogTitle,
() => localization.GetString(() => Resources.Strings.Model_Close_Confirmation_Message),
() => localization.GetString(() => Core.Resources.Strings.Global_No),
() => localization.GetString(() => Core.Resources.Strings.Global_Yes));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ await EvergineBackgroundTask.Run(async () =>
root = new Entity()
.AddComponent(new Transform3D());

root.Tag = filePath;

root.AddChild(modelEntity);

// BoundingBox
Expand Down

0 comments on commit e6bba29

Please sign in to comment.