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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-02-05 18:39:43 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-02-05 18:39:43 +0400
commit81048fed749776089a5617f30106e9cf43c233a3 (patch)
tree825b2b345b5a46b46d6c1d8b874d7ddc74bafb80 /release
parentc8f5dac11bb67aa005502d62855292e41252bbb4 (diff)
parent04a079668c2d72ea00f2537fa88fdca2728c5aa2 (diff)
Merging r43871 through r43908 from trunk into soc-2011-tomato
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/clip.py3
-rw-r--r--release/scripts/startup/bl_operators/object.py3
-rw-r--r--release/scripts/startup/bl_ui/properties_data_modifier.py4
-rw-r--r--release/scripts/startup/bl_ui/properties_object_constraint.py10
-rw-r--r--release/scripts/startup/bl_ui/space_clip.py12
-rw-r--r--release/scripts/startup/bl_ui/space_image.py5
-rw-r--r--release/scripts/startup/bl_ui/space_node.py2
7 files changed, 23 insertions, 16 deletions
diff --git a/release/scripts/startup/bl_operators/clip.py b/release/scripts/startup/bl_operators/clip.py
index 77c28b1bc11..aa4f3a35e6d 100644
--- a/release/scripts/startup/bl_operators/clip.py
+++ b/release/scripts/startup/bl_operators/clip.py
@@ -69,7 +69,7 @@ def CLIP_camera_for_clip(context, clip):
if ob.type == 'CAMERA':
for con in ob.constraints:
if con.type == 'CAMERA_SOLVER':
- cur_clip = scene.clip if con.use_active_clip else con.clip
+ cur_clip = scene.active_clip if con.use_active_clip else con.clip
if cur_clip == clip:
return ob
@@ -834,6 +834,7 @@ class CLIP_OT_setup_tracking_scene(Operator):
return {'FINISHED'}
+
class CLIP_OT_track_settings_as_default(Operator):
"""Copy tracking settings from active track to default settings"""
diff --git a/release/scripts/startup/bl_operators/object.py b/release/scripts/startup/bl_operators/object.py
index 923a259c69c..b7c6b858913 100644
--- a/release/scripts/startup/bl_operators/object.py
+++ b/release/scripts/startup/bl_operators/object.py
@@ -493,7 +493,8 @@ class ShapeTransfer(Operator):
def execute(self, context):
ob_act = context.active_object
- objects = [ob for ob in context.selected_editable_objects if ob != ob_act]
+ objects = [ob for ob in context.selected_editable_objects
+ if ob != ob_act]
if 1: # swap from/to, means we cant copy to many at once.
if len(objects) != 1:
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py
index 766daba58b8..354b70c19c2 100644
--- a/release/scripts/startup/bl_ui/properties_data_modifier.py
+++ b/release/scripts/startup/bl_ui/properties_data_modifier.py
@@ -814,12 +814,12 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
def REMESH(self, layout, ob, md):
layout.prop(md, "mode")
-
+
row = layout.row()
row.prop(md, "octree_depth")
row.prop(md, "scale")
- if md.mode == "SHARP":
+ if md.mode == 'SHARP':
layout.prop(md, "sharpness")
layout.prop(md, "remove_disconnected_pieces")
diff --git a/release/scripts/startup/bl_ui/properties_object_constraint.py b/release/scripts/startup/bl_ui/properties_object_constraint.py
index dff23e6238f..68c00691122 100644
--- a/release/scripts/startup/bl_ui/properties_object_constraint.py
+++ b/release/scripts/startup/bl_ui/properties_object_constraint.py
@@ -435,23 +435,23 @@ class ConstraintButtonsPanel():
self.target_template(layout, con)
split = layout.split()
-
+
col = split.column()
col.label(text="From Target:")
col.prop(con, "transform_channel", text="")
col.prop(con, "target_space", text="")
-
+
col = split.column()
col.label(text="To Action:")
col.prop(con, "action", text="")
-
+
split = layout.split()
-
+
col = split.column(align=True)
col.label(text="Target Range:")
col.prop(con, "min", text="Min")
col.prop(con, "max", text="Max")
-
+
col = split.column(align=True)
col.label(text="Action Range:")
col.prop(con, "frame_start", text="Start")
diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py
index 3799361d3de..bb5c60fb1bf 100644
--- a/release/scripts/startup/bl_ui/space_clip.py
+++ b/release/scripts/startup/bl_ui/space_clip.py
@@ -128,9 +128,12 @@ class CLIP_PT_tools_marker(Panel):
col.separator()
row = col.row(align=True)
- row.prop(settings, "use_default_red_channel", text="R", toggle=True)
- row.prop(settings, "use_default_green_channel", text="G", toggle=True)
- row.prop(settings, "use_default_blue_channel", text="B", toggle=True)
+ row.prop(settings, "use_default_red_channel",
+ text="R", toggle=True)
+ row.prop(settings, "use_default_green_channel",
+ text="G", toggle=True)
+ row.prop(settings, "use_default_blue_channel",
+ text="B", toggle=True)
col.separator()
@@ -155,7 +158,8 @@ class CLIP_PT_tools_marker(Panel):
col.prop(settings, "default_pattern_match", text="")
col.separator()
- col.operator('clip.track_settings_as_default', text="Copy From Active Track")
+ col.operator('clip.track_settings_as_default',
+ text="Copy From Active Track")
class CLIP_PT_tools_tracking(Panel):
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index a41ae92b4b6..c0cc692f2f1 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -21,6 +21,7 @@ import bpy
from bpy.types import Header, Menu, Panel
from .properties_paint_common import UnifiedPaintPanel
+
class ImagePaintPanel(UnifiedPaintPanel):
bl_space_type = 'IMAGE_EDITOR'
bl_region_type = 'UI'
@@ -677,7 +678,7 @@ class IMAGE_PT_paint(Panel, ImagePaintPanel):
row = col.row(align=True)
self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
-
+
row = col.row(align=True)
row.prop(brush, "jitter", slider=True)
row.prop(brush, "use_pressure_jitter", toggle=True, text="")
@@ -826,7 +827,7 @@ class IMAGE_UV_sculpt(Panel, ImagePaintPanel):
row = col.row(align=True)
self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength")
self.prop_unified_strength(row, context, brush, "use_pressure_strength")
-
+
split = layout.split()
col = split.column()
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index d29dff49132..0114f33928a 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -58,7 +58,7 @@ class NODE_HT_header(Header):
# Don't show "Use Nodes" Button when Engine is BI for Lamps
if snode_id and not (scene.render.use_shading_nodes == 0 and ob.type == 'LAMP'):
layout.prop(snode_id, "use_nodes")
-
+
if snode.shader_type == 'WORLD':
layout.template_ID(scene, "world", new="world.new")
if snode_id: