mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Merge pull request #827 from Areloch/MiscFIxes20220702
Misc Fixes 2022/07/02
This commit is contained in:
commit
32ddf5f791
10 changed files with 38 additions and 13 deletions
|
|
@ -690,7 +690,7 @@ void SFXEmitter::_update()
|
||||||
|
|
||||||
if (mSoundAsset.notNull() )
|
if (mSoundAsset.notNull() )
|
||||||
{
|
{
|
||||||
mLocalProfile = *mSoundAsset->getSfxProfile();
|
//mLocalProfile = *mSoundAsset->getSfxProfile();
|
||||||
mDescription = *mSoundAsset->getSfxDescription();
|
mDescription = *mSoundAsset->getSfxDescription();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
#include "torqueConfig.h"
|
||||||
|
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#include "VPathEditor.h"
|
#include "VPathEditor.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,8 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#ifndef _VT_VPATHEDITOR_H_
|
#ifndef _VT_VPATHEDITOR_H_
|
||||||
#define _VT_VPATHEDITOR_H_
|
#define _VT_VPATHEDITOR_H_
|
||||||
|
|
||||||
|
#include "torqueConfig.h"
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#ifndef _EDITTSCTRL_H_
|
#ifndef _EDITTSCTRL_H_
|
||||||
#include "gui/worldEditor/editTSCtrl.h"
|
#include "gui/worldEditor/editTSCtrl.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//
|
//
|
||||||
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
||||||
|
#include "torqueConfig.h"
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#include "afx/arcaneFX.h"
|
#include "afx/arcaneFX.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#ifndef _AFX_GUI_SUBSTITUTION_FIELD_H_
|
#ifndef _AFX_GUI_SUBSTITUTION_FIELD_H_
|
||||||
#define _AFX_GUI_SUBSTITUTION_FIELD_H_
|
#define _AFX_GUI_SUBSTITUTION_FIELD_H_
|
||||||
|
#include "torqueConfig.h"
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#include "console/simFieldDictionary.h"
|
#include "console/simFieldDictionary.h"
|
||||||
#include "gui/editor/inspector/field.h"
|
#include "gui/editor/inspector/field.h"
|
||||||
|
|
|
||||||
|
|
@ -2988,6 +2988,7 @@ void AssetManager::unloadAsset( AssetDefinition* pAssetDefinition )
|
||||||
PROFILE_SCOPE(AssetManager_UnloadAsset);
|
PROFILE_SCOPE(AssetManager_UnloadAsset);
|
||||||
|
|
||||||
// Destroy the asset.
|
// Destroy the asset.
|
||||||
|
if(pAssetDefinition->mpAssetBase->isProperlyAdded())
|
||||||
pAssetDefinition->mpAssetBase->deleteObject();
|
pAssetDefinition->mpAssetBase->deleteObject();
|
||||||
|
|
||||||
// Increase unloaded count.
|
// Increase unloaded count.
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
// IN THE SOFTWARE.
|
// IN THE SOFTWARE.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
#include "torqueConfig.h"
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#include "platform/platform.h"
|
#include "platform/platform.h"
|
||||||
#include "guiNavEditorCtrl.h"
|
#include "guiNavEditorCtrl.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#ifndef _GUINAVEDITORCTRL_H_
|
#ifndef _GUINAVEDITORCTRL_H_
|
||||||
#define _GUINAVEDITORCTRL_H_
|
#define _GUINAVEDITORCTRL_H_
|
||||||
|
#include "torqueConfig.h"
|
||||||
#ifdef TORQUE_TOOLS
|
#ifdef TORQUE_TOOLS
|
||||||
#ifndef _EDITTSCTRL_H_
|
#ifndef _EDITTSCTRL_H_
|
||||||
#include "gui/worldEditor/editTSCtrl.h"
|
#include "gui/worldEditor/editTSCtrl.h"
|
||||||
|
|
|
||||||
|
|
@ -1090,6 +1090,8 @@ function AssetBrowserPreviewButton::onRightClick(%this)
|
||||||
EditAssetPopup.enableItem(9, false);
|
EditAssetPopup.enableItem(9, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(AssetDatabase.acquireAsset(EditAssetPopup.assetId))
|
||||||
|
{
|
||||||
%assetDef = AssetDatabase.acquireAsset(EditAssetPopup.assetId);
|
%assetDef = AssetDatabase.acquireAsset(EditAssetPopup.assetId);
|
||||||
if(%assetDef.originalFilePath $= "" || !isFile(%assetDef.originalFilePath))
|
if(%assetDef.originalFilePath $= "" || !isFile(%assetDef.originalFilePath))
|
||||||
{
|
{
|
||||||
|
|
@ -1098,6 +1100,7 @@ function AssetBrowserPreviewButton::onRightClick(%this)
|
||||||
EditAssetPopup.enableItem(9, false);
|
EditAssetPopup.enableItem(9, false);
|
||||||
}
|
}
|
||||||
AssetDatabase.releaseAsset(EditAssetPopup.assetId);
|
AssetDatabase.releaseAsset(EditAssetPopup.assetId);
|
||||||
|
}
|
||||||
|
|
||||||
if(%assetType $= "LevelAsset")
|
if(%assetType $= "LevelAsset")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,17 @@ function AssetBrowser::editAsset(%this, %assetDef)
|
||||||
{
|
{
|
||||||
AssetBrowser.navigateTo(%folder);
|
AssetBrowser.navigateTo(%folder);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
%object = getToken(EditAssetPopup.assetId, ":", 1);
|
||||||
|
if(isObject(%object))
|
||||||
|
{
|
||||||
|
if(%object.isMemberOfClass("SimDatablock"))
|
||||||
|
{
|
||||||
|
DatablockEditorPlugin.openDatablock( %object );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(AssetDatabase.isDeclaredAsset(%assetDef))
|
else if(AssetDatabase.isDeclaredAsset(%assetDef))
|
||||||
|
|
@ -42,12 +53,14 @@ function AssetBrowser::editAsset(%this, %assetDef)
|
||||||
%assetDef = AssetDatabase.acquireAsset(%assetDef);
|
%assetDef = AssetDatabase.acquireAsset(%assetDef);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(%assetDef !$= "")
|
||||||
|
{
|
||||||
%assetType = %assetDef.getClassName();
|
%assetType = %assetDef.getClassName();
|
||||||
|
|
||||||
//Build out the edit command
|
//Build out the edit command
|
||||||
%buildCommand = %this @ ".edit" @ %assetType @ "(" @ %assetDef @ ");";
|
%buildCommand = %this @ ".edit" @ %assetType @ "(" @ %assetDef @ ");";
|
||||||
eval(%buildCommand);
|
eval(%buildCommand);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function AssetBrowser::appendSubLevel(%this)
|
function AssetBrowser::appendSubLevel(%this)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue