mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Merge pull request #834 from Azaezel/Preview4_0
soundAsset profile and description getter fixes
This commit is contained in:
commit
c8db2ea955
1 changed files with 4 additions and 4 deletions
|
|
@ -279,16 +279,16 @@ public: \
|
||||||
}\
|
}\
|
||||||
SFXProfile* get##name##Profile()\
|
SFXProfile* get##name##Profile()\
|
||||||
{\
|
{\
|
||||||
if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull())\
|
if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull()){\
|
||||||
m##name##Profile = m##name##Asset->getSfxProfile();\
|
m##name##Profile = m##name##Asset->getSfxProfile();\
|
||||||
return m##name##Profile;\
|
return m##name##Profile;}\
|
||||||
return NULL;\
|
return NULL;\
|
||||||
}\
|
}\
|
||||||
SFXDescription* get##name##Description()\
|
SFXDescription* get##name##Description()\
|
||||||
{\
|
{\
|
||||||
if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull())\
|
if (get##name() != StringTable->EmptyString() && m##name##Asset.notNull()){\
|
||||||
m##name##Desc = m##name##Asset->getSfxDescription();\
|
m##name##Desc = m##name##Asset->getSfxDescription();\
|
||||||
return m##name##Desc;\
|
return m##name##Desc;}\
|
||||||
return NULL;\
|
return NULL;\
|
||||||
}\
|
}\
|
||||||
bool is##name##Valid() { return (get##name() != StringTable->EmptyString() && m##name##Asset->getStatus() == AssetBase::Ok); }
|
bool is##name##Valid() { return (get##name() != StringTable->EmptyString() && m##name##Asset->getStatus() == AssetBase::Ok); }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue