Skip to content

refactor: AssetBundle and GLTF AssetLibrary#857

Merged
pbosio merged 4 commits intomasterfrom
refactor/ab-gltf-asset-library-pools
Aug 2, 2021
Merged

refactor: AssetBundle and GLTF AssetLibrary#857
pbosio merged 4 commits intomasterfrom
refactor/ab-gltf-asset-library-pools

Conversation

@pbosio
Copy link
Copy Markdown
Contributor

@pbosio pbosio commented Jul 27, 2021

Refactor to avoid the strange situation when an Asset Bundles and GLTF collide with each other in the pool while having the same id.

@pbosio pbosio self-assigned this Jul 27, 2021
@github-actions
Copy link
Copy Markdown
Contributor

@pbosio pbosio linked an issue Jul 27, 2021 that may be closed by this pull request
@pbosio pbosio marked this pull request as ready for review July 30, 2021 13:15
Copy link
Copy Markdown
Contributor

@BrianAmadori BrianAmadori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested it for a while and found no issues.

public class AssetLibrary_Poolable<AssetType> : AssetLibrary<AssetType>
where AssetType : Asset_WithPoolableContainer
{
private readonly string salt = null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "salt" mean? Maybe we could find a more descriptive name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove PoolManager singleton to fix undefined behaviour

3 participants