Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-12-31 06:40:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-31 06:40:33 +0400
commit1d152c77a52e01913f2c448d194611ec76ab7c74 (patch)
treee9e8a3fabeff85e56695ec2d6a76139c4441285d /release
parent14f5f264eca71cd30fd9e37c16560779d386b5cf (diff)
minor style edits to space_clip & unused var
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_clip.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 5234ffbcc32..0da022dd8db 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -16,7 +16,8 @@
#
# ##### END GPL LICENSE BLOCK #####
-# <pep8 compliant>
+# <pep8-80 compliant>
+
import bpy
from bpy.types import Panel, Header, Menu
@@ -209,12 +210,9 @@ class CLIP_PT_tools_solve(Panel):
col = layout.column(align=True)
- if tracking_object.is_camera:
- solve_text = "Camera Motion"
- else:
- solve_text = "Object Motion"
-
- col.operator("clip.solve_camera", text=solve_text)
+ col.operator("clip.solve_camera",
+ text="Camera Motion" if tracking_object.is_camera
+ else "Object Motion")
col.operator("clip.clear_solution")
col = layout.column(align=True)
@@ -379,11 +377,12 @@ class CLIP_PT_objects(Panel):
def draw(self, context):
layout = self.layout
sc = context.space_data
- clip = context.space_data.clip
+ clip = sc.clip
tracking = clip.tracking
row = layout.row()
- row.template_list(tracking, "objects", tracking, "active_object_index", rows=3)
+ row.template_list(tracking, "objects",
+ tracking, "active_object_index", rows=3)
sub = row.column(align=True)
@@ -472,7 +471,7 @@ class CLIP_PT_tracking_camera(Panel):
def poll(cls, context):
sc = context.space_data
- return sc.mode in ['TRACKING', 'DISTORTION'] and sc.clip
+ return sc.mode in {'TRACKING', 'DISTORTION'} and sc.clip
def draw(self, context):
layout = self.layout