mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 21:53:41 +00:00
renderer: hotfix a broken svg file sharing
Do not allow data sharing among same svg instances. This should be addressed properly.
This commit is contained in:
parent
41c1171197
commit
2d47585c98
1 changed files with 2 additions and 2 deletions
|
@ -278,10 +278,10 @@ LoadModule* LoaderMgr::loader(const string& path, bool* invalid)
|
|||
{
|
||||
*invalid = false;
|
||||
|
||||
//TODO: lottie is not sharable.
|
||||
//TODO: svg & lottie is not sharable.
|
||||
auto allowCache = true;
|
||||
auto ext = path.substr(path.find_last_of(".") + 1);
|
||||
if (!ext.compare("json")) allowCache = false;
|
||||
if (!ext.compare("svg") || !ext.compare("json")) allowCache = false;
|
||||
|
||||
if (allowCache) {
|
||||
if (auto loader = _findFromCache(path)) return loader;
|
||||
|
|
Loading…
Add table
Reference in a new issue