klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 3 forks source link

Bug fix in vertex calculation in @convPoly.beforeFrame(). #124

Closed cnuahs closed 5 years ago

cnuahs commented 5 years ago

Change b279020f added properties (o.vx and o.vy) to explicitly provide vertex coords. As implemented, if no verticies were provided they were computed (as before). However, they were only computed on the very first frame which broke the existing behaviour where by the vertex coords were computed on each frame and so could be dynamic.

This change restores that behaviour.