mirror of
https://github.com/psychopy/psychojs.git
synced 2025-05-13 09:08:12 +00:00
Merge pull request #393 from apitiot/master
fromSnapshot now handles thisTrial as well
This commit is contained in:
commit
04bd836e0a
@ -302,6 +302,8 @@ export class TrialHandler extends PsychObject
|
|||||||
snapshot.handler.thisIndex = snapshot.thisIndex;
|
snapshot.handler.thisIndex = snapshot.thisIndex;
|
||||||
snapshot.handler.ran = snapshot.ran;
|
snapshot.handler.ran = snapshot.ran;
|
||||||
snapshot.handler._finished = snapshot._finished;
|
snapshot.handler._finished = snapshot._finished;
|
||||||
|
|
||||||
|
snapshot.handler.thisTrial = snapshot.handler.getCurrentTrial();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user