From 2eee1394fb882d75d4e43454497dcfbe6f83398b Mon Sep 17 00:00:00 2001 From: Rob Date: Fri, 31 Dec 2021 13:54:19 -0500 Subject: [PATCH] Set model from selection on changing mode When changing from World View to Model View, populate the Model selectbox with the selected item's name --- CodeWalker/WorldForm.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CodeWalker/WorldForm.cs b/CodeWalker/WorldForm.cs index 9692013..39cefd0 100644 --- a/CodeWalker/WorldForm.cs +++ b/CodeWalker/WorldForm.cs @@ -6346,6 +6346,10 @@ namespace CodeWalker rendermaps = false; renderworld = false; ViewTabControl.SelectedTab = ViewModelTabPage; + if (SelectionNameTextBox.Text != "" && SelectionNameTextBox.Text != "Nothing selected") + { + modelname = SelectionNameTextBox.Text; + } break; }