forked from bartvdbraak/blender
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:
parent
94a3bc63cc
commit
ecf2f1593a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user