diff options
author | Stephen Leger <stephen@3dservices.ch> | 2019-04-07 11:16:35 +0300 |
---|---|---|
committer | Stephen Leger <stephen@3dservices.ch> | 2019-04-07 11:16:35 +0300 |
commit | 4f34e011d491ed29a707608b72e92a9ba1172378 (patch) | |
tree | ecc43f75aa5ad75205abebacdba6104a408f51a1 /space_clip_editor_refine_solution.py | |
parent | a68c4204ac5e7345bf42eb0435356ee8fe48eae0 (diff) |
refine tracking solution: bugfix poll not checking for area clip
Diffstat (limited to 'space_clip_editor_refine_solution.py')
-rw-r--r-- | space_clip_editor_refine_solution.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/space_clip_editor_refine_solution.py b/space_clip_editor_refine_solution.py index 9e632e66e..475f9157 100644 --- a/space_clip_editor_refine_solution.py +++ b/space_clip_editor_refine_solution.py @@ -24,7 +24,7 @@ bl_info = { "name": "Refine tracking solution", "author": "Stephen Leger", "license": "GPL", - "version": (1, 1, 4), + "version": (1, 1, 5), "blender": (2, 80, 0), "location": "Clip Editor > Tools > Solve > Refine Solution", "description": "Refine motion solution by setting track weight according" @@ -52,7 +52,10 @@ class TRACKING_OP_refine_solution(Operator): @classmethod def poll(cls, context): - return (context.area.spaces.active.clip is not None) + return (context.area and context.area.spaces and + hasattr(context.area.spaces.active, 'clip') and + context.area.spaces.active.clip is not None + ) def execute(self, context): error = context.window_manager.TrackingTargetError |