fixed bug in selection rectangle and Timer node

This commit is contained in:
tamat
2018-10-31 12:25:44 +01:00
parent 3381de6609
commit dededf724d
5 changed files with 255 additions and 244 deletions

View File

@@ -147,14 +147,14 @@ TimerEvent.prototype.onExecute = function()
if( this.time < this.last_interval || isNaN(this.last_interval) )
{
if( this.inputs[1] )
if( this.inputs && this.inputs.length > 1 && this.inputs[1] )
this.setOutputData(1,false);
return;
}
this.triggered = true;
this.time = this.time % this.last_interval;
this.trigger( "on_tick", this.properties.event );
if( this.inputs[1] )
if( this.inputs && this.inputs.length > 1 && this.inputs[1] )
this.setOutputData( 1, true );
}