mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue