Sdk/BaseWidget: Fix problem with pipeline update

Former-commit-id: e068975aa2901fa50bd6f1d96dcb247369c68c6d [formerly e052e8f3d20559d0d8d3f4c00612e103ae3f8d91] [formerly 481d1d386eea41466da421a1cd16747843cea61e [formerly a84c4b38748634526b5b43c02cafc8b16c80fecb]]
Former-commit-id: 6bc636bf665ef1a96f2ba1838a554183510294ab [formerly 8465c265f85b5c1af3b43e762015f156f708fd7a]
Former-commit-id: 1551828a5fcc5c45c0593787852193c8053f017b
This commit is contained in:
Lynix 2016-08-09 14:10:07 +02:00
parent 1ae36e4a53
commit 4efa269502
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ namespace Ndk
{
m_backgroundSprite = Nz::Sprite::New();
m_backgroundSprite->SetColor(m_backgroundColor);
m_backgroundSprite->SetMaterial(Nz::MaterialLibrary::Get((m_backgroundColor.IsOpaque()) ? "Basic2D" : "Translucent2D"));
m_backgroundSprite->SetMaterial(Nz::Material::New((m_backgroundColor.IsOpaque()) ? "Basic2D" : "Translucent2D"));
m_backgroundEntity = m_world->CreateEntity();
m_backgroundEntity->AddComponent<GraphicsComponent>().Attach(m_backgroundSprite, -1);