Merge remote-tracking branch 'origin/master' into 1.7

This commit is contained in:
Wojtek Figat
2023-09-11 22:43:46 +02:00
53 changed files with 1537 additions and 218 deletions

View File

@@ -123,9 +123,9 @@ namespace FlaxEditor.CustomEditors.Editors
{
if (tree.IsLayoutLocked)
return;
root.LockChildrenRecursive();
tree.LockChildrenRecursive();
Utilities.Utils.UpdateSearchPopupFilter(root, searchBox.Text);
root.UnlockChildrenRecursive();
tree.UnlockChildrenRecursive();
menu.PerformLayout();
};
root.ExpandAll(true);

View File

@@ -39,6 +39,8 @@ namespace FlaxEditor.CustomEditors.Editors
_entryIndex = entryIndex;
_modelInstance = modelInstance;
var slots = modelInstance.MaterialSlots;
if (slots == null || entryIndex >= slots.Length)
return;
if (entry.Material == slots[entryIndex].Material)
{
// Ensure that entry with default material set is set back to null

View File

@@ -593,9 +593,9 @@ namespace FlaxEditor.CustomEditors.Editors
{
if (tree.IsLayoutLocked)
return;
root.LockChildrenRecursive();
tree.LockChildrenRecursive();
Utilities.Utils.UpdateSearchPopupFilter(root, searchBox.Text);
root.UnlockChildrenRecursive();
tree.UnlockChildrenRecursive();
menu.PerformLayout();
};