Fix missing (re)load when changing asset libraries
Logic to compare asset library references was incorrect.
This commit is contained in:
parent
91853d95a9
commit
2ce7f02a06
|
@ -17,9 +17,9 @@ AssetLibraryReferenceWrapper::AssetLibraryReferenceWrapper(const AssetLibraryRef
|
|||
|
||||
bool operator==(const AssetLibraryReferenceWrapper &a, const AssetLibraryReferenceWrapper &b)
|
||||
{
|
||||
return (a.type == b.type) && (a.type == ASSET_LIBRARY_CUSTOM) ?
|
||||
(a.custom_library_index == b.custom_library_index) :
|
||||
true;
|
||||
return (a.type == b.type) &&
|
||||
((a.type == ASSET_LIBRARY_CUSTOM) ? (a.custom_library_index == b.custom_library_index) :
|
||||
true);
|
||||
}
|
||||
|
||||
uint64_t AssetLibraryReferenceWrapper::hash() const
|
||||
|
|
Loading…
Reference in New Issue