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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-05 02:33:45 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2012-12-05 02:33:45 +0400
commit724746dba2deed8e336fc66b36bfc3b5b1858a8e (patch)
tree3d05fa5d1338aeefa91bb6d48139441896f9aced /release/scripts/startup/bl_ui/properties_render.py
parented0e2fbd9f4edd55e11df694b34e233cb38cb953 (diff)
A patch set by Bastien Montagne (many thanks!)
* Removed the ../include and ../src include directories from scons/cmake files. These directories do not exist and are very noisy when building. * Coding style clean-up in Python scripts: 'string' is used for enum values, and "string" for usual stings. * UILayout.active is used instead of UILayout.enabled to grey out "inactive" settings. This still allows users to edit them, which can be handy sometimes. * Improved UI layout of the Line Style panel by means of: - The standard “column” paradigm is used in more places; - More compact layout where possible; and - Tweaks to the modifiers' header. * Improved UI layout of the Line Set panel by rearranging the "Selection by" options into a compact row of toggle buttons.
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_render.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_render.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py
index ba24874bc9d..df43677601f 100644
--- a/release/scripts/startup/bl_ui/properties_render.py
+++ b/release/scripts/startup/bl_ui/properties_render.py
@@ -304,20 +304,19 @@ class RENDER_PT_freestyle(RenderButtonsPanel, Panel):
def draw_header(self, context):
rd = context.scene.render
-
self.layout.prop(rd, "use_freestyle", text="")
def draw(self, context):
rd = context.scene.render
layout = self.layout
- layout.enabled = rd.use_freestyle
+ layout.active = rd.use_freestyle
row = layout.row()
row.label(text="Line Thickness:")
row.prop(rd, "line_thickness_mode", expand=True)
row = layout.row()
- row.enabled = (rd.line_thickness_mode == "ABSOLUTE")
+ row.active = (rd.line_thickness_mode == 'ABSOLUTE')
row.prop(rd, "unit_line_thickness")