mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
boolean is<thing>valid chjecks for assets. tests wether it's non-empty and reporting zero flaws
This commit is contained in:
parent
96891e5673
commit
776741770d
5 changed files with 16 additions and 9 deletions
|
|
@ -259,7 +259,8 @@ public: \
|
|||
SimObjectPtr<Material> get##name##Resource() \
|
||||
{\
|
||||
return m##name;\
|
||||
}
|
||||
}\
|
||||
bool is##name##Valid() { (get##name() != StringTable->EmptyString() && m##name##Asset->getStatus() == AssetBase::Ok) ? true : false; }
|
||||
|
||||
#define DECLARE_MATERIALASSET_SETGET(className, name)\
|
||||
static bool _set##name##Data(void* obj, const char* index, const char* data)\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue