Fix T38670: Mask transform without a movieclip crashes
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Feb 2014 06:58:50 +0000 (12:58 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 17 Feb 2014 06:58:50 +0000 (12:58 +0600)
commit1776cb92441b180c733ce13bbfcb1058bb46e6ae
tree4e27478d5d76a2583054a05d5111690bd090b492
parent9c79fd1193e796c351f664724d8ab7232b57cde5
Fix T38670: Mask transform without a movieclip crashes

Disable transform and mask display when there's no active clip.

It's not a matter of returning fallback dimensions if there's no
slip, it's also matter of making it so stabilization and distortion
routines are aware of clip == NULL which is really crappy.

Also almost all the operators are disabled in clip editor without
active clip already anyway.

Also tweaked header UI a bit to not display mask stuff when there's
no active clip,
release/scripts/startup/bl_ui/space_clip.py
source/blender/editors/space_clip/space_clip.c
source/blender/editors/transform/transform.c
source/blender/editors/transform/transform_conversions.c