mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Fixed gui editor drag and drop behavior for image, shape, and sound
Ensure BitmapFile is given a proper default
This commit is contained in:
parent
5397c168bc
commit
0e6c33f78a
7 changed files with 29 additions and 7 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue