16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 15:49:19 +02:00

AI cruise control fix, minor refactoring

This commit is contained in:
tmj-fstate
2018-08-19 14:40:48 +02:00
parent 4aeb98ecbe
commit 24eda2d63f
7 changed files with 33 additions and 56 deletions

View File

@@ -16,7 +16,7 @@ node_groups Groups;
// requests creation of a new node group. returns: handle to the group
scene::group_handle
node_groups::begin() {
node_groups::create() {
m_activegroup.push( create_handle() );
@@ -25,7 +25,7 @@ node_groups::begin() {
// indicates creation of current group ended. returns: handle to the parent group or null_handle if group stack is empty
scene::group_handle
node_groups::end() {
node_groups::close() {
if( false == m_activegroup.empty() ) {
@@ -58,7 +58,7 @@ node_groups::handle() const {
// places provided node in specified group
void
node_groups::register_node( scene::basic_node *Node, scene::group_handle const Group ) {
node_groups::insert( scene::group_handle const Group, scene::basic_node *Node ) {
// TBD, TODO: automatically unregister the node from its current group?
Node->group( Group );