mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
build 180127. minor bug fixes
This commit is contained in:
@@ -1011,7 +1011,7 @@ event_manager::CheckQuery() {
|
||||
}
|
||||
case tp_Visible: {
|
||||
if( m_workevent->Params[ 9 ].asEditorNode )
|
||||
m_workevent->Params[ 9 ].asEditorNode->visible( m_workevent->Params[ i ].asInt > 0 );
|
||||
m_workevent->Params[ 9 ].asEditorNode->visible( m_workevent->Params[ 0 ].asInt > 0 );
|
||||
break;
|
||||
}
|
||||
case tp_Velocity: {
|
||||
@@ -1427,8 +1427,10 @@ event_manager::InitEvents() {
|
||||
}
|
||||
if( node != nullptr )
|
||||
event->Params[ 9 ].asEditorNode = node;
|
||||
else
|
||||
else {
|
||||
event->m_ignored = true;
|
||||
ErrorLog( "Bad event: visibility event \"" + event->asName + "\" cannot find item \"" + event->asNodeName + "\"" );
|
||||
}
|
||||
event->asNodeName = "";
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user