From 5a0b9a51203609b76e2d879277219cd8ada90eff Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Wed, 29 Jan 2025 00:16:03 -0600 Subject: [PATCH] fix material editor becoming nonresponsive when specifically dragging and dropping a texture --- .../tools/materialEditor/scripts/materialEditor.ed.tscript | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript index 1f2d4fdf6..a0919e915 100644 --- a/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript +++ b/Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript @@ -2733,6 +2733,11 @@ function matEdDragNDropMapAssignment(%type, %payload) MaterialEditorGui.guiSync( materialEd_previewMaterial ); MaterialEditorGui.doUpdateTextureMap( %assetId ); + Canvas.popDialog(EditorDragAndDropLayer); + if(EditorSettings.value("AssetManagement/Assets/closeBrowserOnDragAction", false)) + { + AssetBrowser.hideDialog(); + } } function materialEditorDiffuseMapContainer::onControlDropped( %this, %payload, %position )