Skip to content

Commit

Permalink
Make morph sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoi-hosizora committed May 23, 2021
1 parent 9c0bf43 commit 1f3e5f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/CMakeLists.txt.user
/build*
/test_data/*_test.xml
/test/CMakeLists.txt.user
/bin
/.vscode

.vscode/
.ionide/
.history/
build/
bin/
aoihosizora/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Groot (forked)
# Groot for Windows

+ This is a forked modified Groot repo by [Aoi-hosizora](https://github.com/Aoi-hosizora). This is used by SCUT xxx (private) project.
+ For old README, please visit [README_old.md](./README_old.md).
+ Note that depended [BehaviorTree.CPP](https://github.com/BehaviorTree/BehaviorTree.CPP), [cppzmq](https://github.com/zeromq/cppzmq) and [libzmq](https://github.com/zeromq/libzmq) are all submodule-deinited.

## Build Groot in Windows and MinGW-x64
## Build Groot on Windows and MinGW-x64

```bash
# Change to Your Qt path (line 12)
Expand Down
1 change: 1 addition & 0 deletions bt_editor/bt_editor_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const NodeModels &BuiltinNodeModels()
factory.registerNodeType<BT::SubtreeNode>("Root");

NodeModels out;
// <<<<<<<<<<<<<<<<<<<<<<<
for( const auto& it: factory.manifests())
{
const auto& model_name = it.first;
Expand Down
5 changes: 4 additions & 1 deletion bt_editor/graphic_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,10 @@ void GraphicContainer::createMorphSubMenu(QtNodes::Node &node, QMenu* nodeMenu)
}
else
{
for(auto& name: names_in_category)
std::vector<QString> v;;
v.insert(v.end(), names_in_category.begin(), names_in_category.end());
std::sort(v.begin(), v.end());
for(auto& name: v)
{
auto action = new QAction(name, morph_submenu);
morph_submenu->addAction(action);
Expand Down

0 comments on commit 1f3e5f2

Please sign in to comment.