SDK/ImageWidget: Fixed sprite not following widget position
This commit is contained in:
parent
79b0bd644c
commit
17236880d2
|
|
@ -12,7 +12,7 @@ namespace Ndk
|
|||
BaseWidget(parent)
|
||||
{
|
||||
m_entity = CreateEntity();
|
||||
m_entity->AddComponent<NodeComponent>();
|
||||
m_entity->AddComponent<NodeComponent>().SetParent(this);
|
||||
auto& gfx = m_entity->AddComponent<GraphicsComponent>();
|
||||
|
||||
m_sprite = Nz::Sprite::New();
|
||||
|
|
|
|||
Loading…
Reference in New Issue