diff --git a/CHANGELOG b/CHANGELOG index fa0e85b..0b2fc35 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 0.2.1.577 +Date: 2019.2.16 +Bugfixes: + - Fixed the body-blocks that is in edit area is disabled when changed showing object.[bug#27] +--------------------------------------------------------------------------------------------------- Version: 0.2.1.573 Date: 2019.2.14 Bugfixes: @@ -37,7 +42,7 @@ Features: Source: - Deleted some signals and slots. --------------------------------------------------------------------------------------------------- -Version: 0.2.0.515 | 0.2.0 +Version: 0.2.0.515 Date: 2019.1.18 Source: - Added function to Logger in template function. @@ -92,7 +97,7 @@ Date: 2018.12.25 Features: - Added loading for image resource. --------------------------------------------------------------------------------------------------- -Version: 0.1.0.417 | 0.1.0 +Version: 0.1.0.417 Date: 2018.12.25 Source: - Added destructor to some of functions. diff --git a/CHANGELOG.RELEASE b/CHANGELOG.RELEASE index d2bd76a..ce9bc02 100644 --- a/CHANGELOG.RELEASE +++ b/CHANGELOG.RELEASE @@ -1,4 +1,20 @@ --------------------------------------------------------------------------------------------------- +Version: 0.2.1 +Date: 2019.2.16 +Features: + - Added stage to list of sprites.[build-570] + - Changed the style of sprite list item.[build-563] + - Finished UI of SpriteListItem.[build-527] + - Output the current running block's name to the log file.[build-547] + - Run project with multithread.[build-555] +Bugfixes: + - Fixed the blocks cannot be used when running project.[bug#22][build-547] + - Fixed the block category did not refresh after changing the category.[bug#26][build-555] + - Fixed the body-blocks that is in edit area is disabled when changed showing object.[bug#27][build-577] + - Fixed the program crash when initialization.[bug#28][build-573] +Source: + - Deleted some signals and slots.[build-570] +--------------------------------------------------------------------------------------------------- Version: 0.2.0 Date: 2019.1.18 Features: diff --git a/ZilchEditor.pro.user b/ZilchEditor.pro.user index 3de9110..05003ef 100644 --- a/ZilchEditor.pro.user +++ b/ZilchEditor.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/src/widget/ScriptPart.cpp b/src/widget/ScriptPart.cpp index c6b0df6..881b4d1 100644 --- a/src/widget/ScriptPart.cpp +++ b/src/widget/ScriptPart.cpp @@ -61,19 +61,13 @@ ScriptPart_ScriptEdit::ScriptPart_ScriptEdit(QWidget *parent):Widget(parent) { void ScriptPart_ScriptEdit::Reload() { for (auto c : this->children()) { - delete c; - c = nullptr; + static_cast(c)->hide(); } for (auto &c : AppWindow->EditArea->Object->BlockList) { - if (c->isHead()) { - c->Item = new BlockItem(c, nullptr, nullptr, this); - c->Item->move(c->X, c->Y); - } - else { - c->Item = new BlockItem(c, c->LastBlock, c->NextBlock, this); - c->Item->move(c->LastBlock->Item->x(), c->LastBlock->Item->y() + c->LastBlock->Item->height()); - } c->Item->show(); + for (auto &i = c->NextBlock; i != nullptr; i = i->NextBlock) { + i->Item->show(); + } } }