mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Merge pull request #1253 from Azaezel/alpha41/abDragDropDrunk
asset browser was passing along screen position, not scene position based on drop at options
This commit is contained in:
commit
d41530f61e
1 changed files with 4 additions and 4 deletions
|
|
@ -2535,20 +2535,20 @@ function EWorldEditor::onControlDropped( %this, %payload, %position )
|
||||||
{
|
{
|
||||||
if(%assetType $= "Datablock")
|
if(%assetType $= "Datablock")
|
||||||
{
|
{
|
||||||
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %asset @ ",\"" @ %position @ "\");";
|
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %asset @ ",\"" @ %pos @ "\");";
|
||||||
}
|
}
|
||||||
else if(%assetType $= "Prefab")
|
else if(%assetType $= "Prefab")
|
||||||
{
|
{
|
||||||
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(\"" @ %module @ "/" @ %asset @ "\",\"" @ %position @ "\");";
|
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(\"" @ %module @ "/" @ %asset @ "\",\"" @ %pos @ "\");";
|
||||||
}
|
}
|
||||||
else if(%assetType $= "Creator")
|
else if(%assetType $= "Creator")
|
||||||
{
|
{
|
||||||
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %module @ ",\"" @ %position @ "\");";
|
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %module @ ",\"" @ %pos @ "\");";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
%assetDef = AssetDatabase.acquireAsset(%module @ ":" @ %asset);
|
%assetDef = AssetDatabase.acquireAsset(%module @ ":" @ %asset);
|
||||||
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %assetDef @ ",\"" @ %position @ "\");";
|
%buildCommand = AssetBrowser @ ".on" @ %assetType @ "EditorDropped(" @ %assetDef @ ",\"" @ %pos @ "\");";
|
||||||
}
|
}
|
||||||
eval(%buildCommand);
|
eval(%buildCommand);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue