Switching SceneItems to smarts

This commit is contained in:
2023-11-12 23:02:11 -06:00
parent e540efb726
commit ba185e9fe4
124 changed files with 185 additions and 775 deletions

View File

@ -79,7 +79,7 @@ namespace Dawn {
*/
template<class T>
std::shared_ptr<T> addComponent() {
auto component = std::make_shared<T>(this);
auto component = std::make_shared<T>(weak_from_this());
this->components.push_back(component);
return component;
}