Changed scene item components to smart pointers
This commit is contained in:
@ -20,14 +20,12 @@ TiledSprite::TiledSprite(SceneItem *item) :
|
||||
|
||||
}
|
||||
|
||||
std::vector<SceneItemComponent*> TiledSprite::getDependencies() {
|
||||
std::vector<std::shared_ptr<SceneItemComponent>> TiledSprite::getDependencies() {
|
||||
if(this->meshHost == nullptr) {
|
||||
this->meshHost = this->item->getComponent<QuadMeshHost>();
|
||||
}
|
||||
|
||||
return {
|
||||
this->meshHost
|
||||
};
|
||||
return { this->meshHost._realValue };
|
||||
}
|
||||
|
||||
void TiledSprite::onStart() {
|
||||
|
Reference in New Issue
Block a user