2.6 UI Files:

* Some code cleanup.
This commit is contained in:
Thomas Dinges 2012-01-05 16:04:25 +00:00
parent a46feb5b8f
commit e95a05b29d
2 changed files with 16 additions and 15 deletions

@ -214,12 +214,12 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
if is_poly: if is_poly:
# These settings are below but its easier to have # These settings are below but its easier to have
# poly's set aside since they use so few settings # poly's set aside since they use so few settings
col = split.column() row = layout.row()
col.label(text="Cyclic:") row.label(text="Cyclic:")
col.prop(act_spline, "use_smooth") row.prop(act_spline, "use_cyclic_u", text="U")
col = split.column()
col.prop(act_spline, "use_cyclic_u", text="U") layout.prop(act_spline, "use_smooth")
else: else:
col = split.column() col = split.column()
col.label(text="Cyclic:") col.label(text="Cyclic:")
@ -257,13 +257,13 @@ class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):
sub.prop(act_spline, "resolution_v", text="V") sub.prop(act_spline, "resolution_v", text="V")
if not is_surf: if not is_surf:
split = layout.split() col = layout.column()
col = split.column()
col.label(text="Interpolation:") col.label(text="Interpolation:")
colsub = col.column()
colsub.active = (curve.dimensions == '3D') sub = col.column()
colsub.prop(act_spline, "tilt_interpolation", text="Tilt") sub.active = (curve.dimensions == '3D')
sub.prop(act_spline, "tilt_interpolation", text="Tilt")
col.prop(act_spline, "radius_interpolation", text="Radius") col.prop(act_spline, "radius_interpolation", text="Radius")
layout.prop(act_spline, "use_smooth") layout.prop(act_spline, "use_smooth")

@ -317,9 +317,10 @@ class CLIP_PT_tools_object(Panel):
return False return False
def draw(self, context): def draw(self, context):
layout = self.layout
sc = context.space_data sc = context.space_data
clip = sc.clip clip = sc.clip
layout = self.layout
tracking_object = clip.tracking.objects.active tracking_object = clip.tracking.objects.active
settings = sc.clip.tracking.settings settings = sc.clip.tracking.settings
@ -376,9 +377,9 @@ class CLIP_PT_objects(Panel):
def draw(self, context): def draw(self, context):
layout = self.layout layout = self.layout
sc = context.space_data sc = context.space_data
clip = sc.clip tracking = sc.clip.tracking
tracking = clip.tracking
row = layout.row() row = layout.row()
row.template_list(tracking, "objects", row.template_list(tracking, "objects",