fix color on mode change

This commit is contained in:
2019-03-09 01:15:23 +01:00
parent 3e54720e91
commit f0fed897f6
4 changed files with 10 additions and 6 deletions

View File

@@ -291,10 +291,10 @@ bool NodePanelBrush::save()
{
BinaryStreamWriter sw;
sw.init();
sw.wstring_raw("PPVR");
sw.wu16(0);
sw.wu16(1);
sw.wu32(m_container->m_children.size());
sw.wstring_raw("PPVR"); // magic code
sw.wu16(0); // version major
sw.wu16(1); // minor
sw.wu32(m_container->m_children.size()); // number of items
for (const auto& child : m_container->m_children)
{
auto b = std::static_pointer_cast<NodeButtonBrush>(child);