Skip to content

Commit ed484ba

Browse files
committed
BF: Movie in JS was not created if updates were "set every repeat"
1 parent 3f8335a commit ed484ba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

psychopy/experiment/components/movie/__init__.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,8 @@ def writeInitCode(self, buff):
269269
buff.writeIndentedLines(code % params)
270270

271271
def writeInitCodeJS(self, buff):
272-
# If needed then use _writeCreationCodeJS()
273-
# Movie could be created here or in writeRoutineStart()
274-
if self.params['movie'].updates == 'constant':
275-
# create the code using init vals
276-
self._writeCreationCodeJS(buff, useInits=True)
272+
# create the code using init vals
273+
self._writeCreationCodeJS(buff, useInits=True)
277274

278275
def writeFrameCode(self, buff):
279276
"""Write the code that will be called every frame

0 commit comments

Comments
 (0)