Fix T51646: Motion Tracker instantly crashes

Was a mistake in previous changes.

Weirdly enough, frame reading assumes cache_key is always non-NULL..
This commit is contained in:
Sergey Sharybin 2017-05-29 09:40:43 +02:00
parent 94a3bc63cc
commit ecf2f1593a
Notes: blender-bot 2023-02-14 06:55:44 +01:00
Referenced by issue #51646, Motion Tracker instantly crashes
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ struct LibmvFrameAccessor : public FrameAccessor {
&width,
&height);
if (cache_key == NULL) {
// No mask for the given track.
return NULL;
}
// TODO(sergey): Dumb code for until we can set data directly.
FloatImage temp_image(float_buffer,
height,