From 9b2b71429f6c3cedb41d8107d9b2f9daab05338e Mon Sep 17 00:00:00 2001 From: Daisuke Date: Sat, 26 Jun 2021 15:04:08 +1000 Subject: [PATCH] Fixing movie.m with sticky properties Followed the suggestion on "bug fix of movie.m #171" --- +neurostim/+stimuli/movie.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/+neurostim/+stimuli/movie.m b/+neurostim/+stimuli/movie.m index 9a0e0198..6342119b 100644 --- a/+neurostim/+stimuli/movie.m +++ b/+neurostim/+stimuli/movie.m @@ -47,13 +47,13 @@ o = o@neurostim.stimulus(c,name); o.addProperty('width',[],'validate',@isnumeric); o.addProperty('height',[],'validate',@isnumeric); - o.addProperty('xPixels',[],'validate',@isnumeric); - o.addProperty('yPixels',[],'validate',@isnumeric); - o.addProperty('nrFrames',[],'validate',@isnumeric); + o.addProperty('xPixels',[],'validate',@isnumeric, 'sticky',true); + o.addProperty('yPixels',[],'validate',@isnumeric, 'sticky',true); + o.addProperty('nrFrames',[],'validate',@isnumeric, 'sticky',true); o.addProperty('filename','','validate',@ischar); o.addProperty('path','','validate',@(x) (ischar(x) && exist(x,'dir'))); o.addProperty('filterMode',1,'validate',@(x) ismember(x,[0:5])); - o.addProperty('framerate',[],'validate',@isnumeric); + o.addProperty('framerate',[],'validate',@isnumeric, 'sticky',true); o.addProperty('orientation',0,'validate',@isnumeric); o.addProperty('loop',false,'validate',@islogical); end