diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-08-24 19:47:05 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2011-08-24 19:47:05 +0400 |
commit | 7eb10d1538a4df347a96b659b29fd24d74513dd9 (patch) | |
tree | 04d8917eb75d4586a0f6ae17da55419a01121985 /release/scripts/startup/bl_ui/properties_render.py | |
parent | 33bb1ed53ee7527b507c4f30a9a0c46dcf0ac415 (diff) |
Added a button to the UI of "Distance from Object" color/alpha/thickness
modifiers to fill the Range Min/Max entries by the min/max distance between
selected mesh objects and the target object.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_render.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 2c0ded20672..1ad1fb5f283 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -364,6 +364,9 @@ class RENDER_PT_freestyle_linestyle(RenderButtonsPanel, Panel): elif modifier.type == "DISTANCE_FROM_OBJECT": box.prop(modifier, "target") self.draw_modifier_color_ramp_common(box, modifier, True) + prop = box.operator("scene.freestyle_fill_range_by_selection") + prop.type = 'COLOR' + prop.name = modifier.name elif modifier.type == "DISTANCE_FROM_CAMERA": self.draw_modifier_color_ramp_common(box, modifier, True) @@ -400,6 +403,9 @@ class RENDER_PT_freestyle_linestyle(RenderButtonsPanel, Panel): elif modifier.type == "DISTANCE_FROM_OBJECT": box.prop(modifier, "target") self.draw_modifier_curve_common(box, modifier, True, False) + prop = box.operator("scene.freestyle_fill_range_by_selection") + prop.type = 'ALPHA' + prop.name = modifier.name elif modifier.type == "DISTANCE_FROM_CAMERA": self.draw_modifier_curve_common(box, modifier, True, False) @@ -426,6 +432,9 @@ class RENDER_PT_freestyle_linestyle(RenderButtonsPanel, Panel): elif modifier.type == "DISTANCE_FROM_OBJECT": box.prop(modifier, "target") self.draw_modifier_curve_common(box, modifier, True, True) + prop = box.operator("scene.freestyle_fill_range_by_selection") + prop.type = 'THICKNESS' + prop.name = modifier.name elif modifier.type == "DISTANCE_FROM_CAMERA": self.draw_modifier_curve_common(box, modifier, True, True) |