Skip to content

Allow ReferenceItems to release their references

T.J. Corona requested to merge tjcorona/smtk:fixingReferenceItemIssue into master

Originally, ReferenceItems cached shared pointers to resources and components. The use of shared pointers resulted in the undesired behavior of resources outliving their presence in the resource manager. This MR adds an option to ReferenceItems (disabled by default) to use shared pointers to store their references. By default, ReferenceItems now use weak pointers, allowing the referenced resource/component to go out of scope.

Edited by T.J. Corona

Merge request reports