diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-02-05 15:37:39 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2012-02-05 15:37:39 +0400 |
commit | 29db9103e9c85356a057166be4f71c778cd97a45 (patch) | |
tree | d7fa16f87d8bd83cc1926a4999df2f053d261a7a /release | |
parent | 8160829303bf3ba3c14f25cdb68aef5396faa56a (diff) |
Reorganization of two view map construction parameters.
* Sphere radius and Kr derivative epsilon were removed from the
Parameter Editor mode. Now sphere radius of 1.0 and Kr derivative
epsilon of 0.0 are used by default. The rationale of the removal
is two-fold: little predictability and very minor artistic values.
The effects of these parameters are hard to estimate in advance,
which likely leads to a frustration of users due to repeated
trials and unpredicted results. Therefore, the two parameters
are considered to have quite limited artistic values. Proper
definitions of the two parameters more and less require the
knowledge of differential geometry and would not make sense to
most artists for which the Parameter Editor is intended.
* Sphere radius and Kr derivative epsilon are still available in
the Python Scripting mode, but now in an "advanced options" section
that is disabled and hidden by default. This way new users are
properly warned, while expert users with specific technical needs
can enable these options if they want. The same default values
mentioned above are used when the two parameters are disabled.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 72b41cca62c..7f00689d254 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -207,12 +207,11 @@ class RENDER_PT_freestyle(RenderButtonsPanel, Panel): col.prop(freestyle, "raycasting_algorithm", text="Raycasting Algorithm") col.prop(freestyle, "mode", text="Control Mode") + col.label(text="Edge Detection Options:") + col.prop(freestyle, "use_smoothness") + col.prop(freestyle, "crease_angle") + if freestyle.mode == "EDITOR": - col.label(text="Edge Detection Options:") - col.prop(freestyle, "use_smoothness") - col.prop(freestyle, "crease_angle") - col.prop(freestyle, "sphere_radius") - col.prop(freestyle, "kr_derivative_epsilon") lineset = freestyle.linesets.active @@ -236,15 +235,14 @@ class RENDER_PT_freestyle(RenderButtonsPanel, Panel): else: # freestyle.mode == "SCRIPT" - col.prop(freestyle, "use_smoothness") - col.prop(freestyle, "crease_angle") - col.prop(freestyle, "sphere_radius") + col.prop(freestyle, "use_material_boundaries") col.prop(freestyle, "use_ridges_and_valleys") col.prop(freestyle, "use_suggestive_contours") - sub = col.row() - sub.prop(freestyle, "kr_derivative_epsilon") - sub.active = freestyle.use_suggestive_contours - col.prop(freestyle, "use_material_boundaries") + col.prop(freestyle, "use_advanced_options") + if freestyle.use_advanced_options: + col.prop(freestyle, "sphere_radius") + col.prop(freestyle, "kr_derivative_epsilon") + col.separator() col.operator("scene.freestyle_module_add") for i, module in enumerate(freestyle.modules): |