Fixed gui editor drag and drop behavior for image, shape, and sound

Ensure BitmapFile is given a proper default
This commit is contained in:
JeffR 2025-05-30 20:21:13 -05:00
parent 5397c168bc
commit 0e6c33f78a
7 changed files with 29 additions and 7 deletions

View file

@ -2515,7 +2515,7 @@ function GuiEditor::onControlDropped(%this, %payload, %position)
%assetId = %payload.moduleName @ ":" @ %payload.assetName;
%assetType = AssetDatabase.getAssetType(%assetId);
AssetBrowser.callAssetTypeFunc(%assetType, "GUIEditorDropped", %payload.moduleName, %payload.assetName, %pos);
%ctrl = AssetBrowser.callAssetTypeFunc(%assetType, "onGUIEditorDropped", %payload.moduleName, %payload.assetName, %pos);
}
else
{