Skip to content

Commit d41530f

Browse files
authored
Merge pull request #1253 from Azaezel/alpha41/abDragDropDrunk
asset browser was passing along screen position, not scene position based on drop at options
2 parents 8404496 + 2a941e7 commit d41530f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Templates/BaseGame/game/tools/assetBrowser/scripts/assetBrowser.tscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,20 +2535,20 @@ function EWorldEditor::onControlDropped( %this, %payload, %position )
25352535
{
25362536
if(%assetType $= "Datablock")
25372537
{
2538-
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %asset @ ",\"" @ %position @ "\");";
2538+
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %asset @ ",\"" @ %pos @ "\");";
25392539
}
25402540
else if(%assetType $= "Prefab")
25412541
{
2542-
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(\"" @ %module @ "/" @ %asset @ "\",\"" @ %position @ "\");";
2542+
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(\"" @ %module @ "/" @ %asset @ "\",\"" @ %pos @ "\");";
25432543
}
25442544
else if(%assetType $= "Creator")
25452545
{
2546-
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %module @ ",\"" @ %position @ "\");";
2546+
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %module @ ",\"" @ %pos @ "\");";
25472547
}
25482548
else
25492549
{
25502550
%assetDef = AssetDatabase.acquireAsset(%module @ ":" @ %asset);
2551-
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %assetDef @ ",\"" @ %position @ "\");";
2551+
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %assetDef @ ",\"" @ %pos @ "\");";
25522552
}
25532553
eval(%buildCommand);
25542554

0 commit comments

Comments
 (0)