فهرست منبع

Merge pull request #1373 from Azaezel/alpha41/matEDmangle

fix material editor becoming nonresponsive when specifically dragging…
Brian Roberts 7 ماه پیش
والد
کامیت
cb63b382ff
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      Templates/BaseGame/game/tools/materialEditor/scripts/materialEditor.ed.tscript

+ 5 - 0
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 )