diff options
author | Thomas Dinges <blender@dingto.org> | 2013-12-26 06:25:13 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-12-26 06:25:30 +0400 |
commit | 03fed41e59cc9247f7db6af33b2e76b6b05340f7 (patch) | |
tree | 7066a78c7db0b43916541ac5a9ce456771b4ec39 /intern/cycles/blender | |
parent | db8293d4561791b4ddb349fa3ce37803afe509ee (diff) |
Cycles / Hair: Further cleanup of UI and internals.
* UI: Remove deprecated condition (CURVE_RIBBONS) and hide backface property, when it's hardcoded in C (Curve/Line segments && Ribbons).
* Remove "use_tangent_normal" and "CURVE_KN_TANGENTGNORMAL" as its unused (follow up for last commit).
Diffstat (limited to 'intern/cycles/blender')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 11 | ||||
-rw-r--r-- | intern/cycles/blender/blender_curves.cpp | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 8f81e93f7c8..83483cbcae9 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1172,13 +1172,12 @@ class CyclesRender_PT_CurveRendering(CyclesButtonsPanel, Panel): layout.prop(ccscene, "primitive", text="Primitive") layout.prop(ccscene, "shape", text="Shape") - if ccscene.primitive == 'TRIANGLES': - if ccscene.shape == 'THICK': - layout.prop(ccscene, "resolution", text="Resolution") - elif ccscene.primitive == 'LINE_SEGMENTS': - layout.prop(ccscene, "cull_backfacing", text="Cull back-faces") - elif ccscene.primitive in {'CURVE_SEGMENTS', 'CURVE_RIBBONS'}: + if (ccscene.primitive in {'CURVE_SEGMENTS', 'LINE_SEGMENTS'} and ccscene.shape == 'RIBBONS') == False: layout.prop(ccscene, "cull_backfacing", text="Cull back-faces") + + if ccscene.primitive == 'TRIANGLES' and ccscene.shape == 'THICK': + layout.prop(ccscene, "resolution", text="Resolution") + elif ccscene.primitive == 'CURVE_SEGMENTS': layout.prop(ccscene, "subdivisions", text="Curve subdivisions") row = layout.row() diff --git a/intern/cycles/blender/blender_curves.cpp b/intern/cycles/blender/blender_curves.cpp index d13c532533e..7e8eb3aa374 100644 --- a/intern/cycles/blender/blender_curves.cpp +++ b/intern/cycles/blender/blender_curves.cpp @@ -710,13 +710,11 @@ void BlenderSync::sync_curve_settings() curve_system_manager->line_method = CURVE_UNCORRECTED; curve_system_manager->use_encasing = true; curve_system_manager->use_backfacing = false; - curve_system_manager->use_tangent_normal = true; curve_system_manager->use_tangent_normal_geometry = true; } else if(curve_system_manager->primitive == CURVE_LINE_SEGMENTS && curve_system_manager->curve_shape == CURVE_THICK) { curve_system_manager->line_method = CURVE_ACCURATE; curve_system_manager->use_encasing = false; - curve_system_manager->use_tangent_normal = false; curve_system_manager->use_tangent_normal_geometry = false; } else if(curve_system_manager->primitive == CURVE_SEGMENTS && curve_system_manager->curve_shape == CURVE_RIBBON) { |