mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
clean up redundant loads, shift first load to getResource methods for sound and shape.
still need to properly sort image
This commit is contained in:
parent
b710a309bd
commit
a8d640e311
5 changed files with 5 additions and 16 deletions
|
|
@ -132,7 +132,7 @@ public:
|
|||
virtual void copyTo(SimObject* object);
|
||||
|
||||
//SFXResource* getSound() { return mSoundResource; }
|
||||
Resource<SFXResource> getSoundResource() { return mSFXProfile.getResource(); }
|
||||
Resource<SFXResource> getSoundResource() { loadSound(); return mSFXProfile.getResource(); }
|
||||
|
||||
/// Declare Console Object.
|
||||
DECLARE_CONOBJECT(SoundAsset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue