rename mask-objects to mask-layers.

This commit is contained in:
2012-05-31 19:12:22 +00:00
parent 3834134cf0
commit 192a28bb32
22 changed files with 668 additions and 668 deletions

View File

@@ -565,7 +565,7 @@ class CLIP_PT_tracking_camera(Panel):
class CLIP_PT_mask_objects(Panel):
bl_space_type = 'CLIP_EDITOR'
bl_region_type = 'UI'
bl_label = "Mask Objects"
bl_label = "Mask Layers"
@classmethod
def poll(cls, context):
@@ -580,15 +580,15 @@ class CLIP_PT_mask_objects(Panel):
mask = sc.mask
row = layout.row()
row.template_list(mask, "objects",
mask, "active_object_index", rows=3)
row.template_list(mask, "layers",
mask, "active_layer_index", rows=3)
sub = row.column(align=True)
sub.operator("mask.object_new", icon='ZOOMIN', text="")
sub.operator("mask.object_remove", icon='ZOOMOUT', text="")
sub.operator("mask.layer_new", icon='ZOOMIN', text="")
sub.operator("mask.layer_remove", icon='ZOOMOUT', text="")
active = mask.objects.active
active = mask.layers.active
if active:
layout.prop(active, "name")
@@ -611,7 +611,7 @@ class CLIP_PT_active_mask_spline(Panel):
mask = sc.mask
if mask and sc.mode == 'MASKEDITING':
return mask.objects.active and mask.objects.active.splines.active
return mask.layers.active and mask.layers.active.splines.active
return False
@@ -620,7 +620,7 @@ class CLIP_PT_active_mask_spline(Panel):
sc = context.space_data
mask = sc.mask
spline = mask.objects.active.splines.active
spline = mask.layers.active.splines.active
col = layout.column()
col.prop(spline, "weight_interpolation")
@@ -638,7 +638,7 @@ class CLIP_PT_active_mask_point(Panel):
mask = sc.mask
if mask and sc.mode == 'MASKEDITING':
return mask.objects.active and mask.objects.active.splines.active_point
return mask.layers.active and mask.layers.active.splines.active_point
return False
@@ -647,7 +647,7 @@ class CLIP_PT_active_mask_point(Panel):
sc = context.space_data
mask = sc.mask
point = mask.objects.active.splines.active_point
point = mask.layers.active.splines.active_point
parent = point.parent
col = layout.column()