diff options
author | Robert Meerman <meermanr> | 2022-02-13 01:02:07 +0300 |
---|---|---|
committer | Aaron Keith <aaroninusa@gmail.com> | 2022-02-13 01:02:07 +0300 |
commit | b0502cd83ca389c8deb3f7458fcd13efa080982f (patch) | |
tree | 39ba6e13bae071f005c0af85dc231054d637ced9 /io_export_dxf/primitive_exporters/viewborder_exporter.py | |
parent | 2fab0283474d136201bf2b8f947e8f96fa71b838 (diff) |
Preserve smoothing options when changing a bolt
Patch D10037
Prior to this patch the effect of applying the "Shade Smooth" object operator and the value of "Vertex > Auto Smooth" were lost when changing an existing bolt (via context-menu's "Change Bolt").
This patch preserves both.
A simple heuristic is used to detect if "Shade Smooth" has been used: the value of use_smooth of the first polygon in the mesh (prior to activating "Change Bolt"). Experiment has shown that "Shade Smooth" / "Shade Flat" are equivalent to setting use_smooth to True/False (respectively) on every polygon in the mesh.
(No heuristic is needed for Auto Smooth, as it is a top-level property of mesh data blocks)
Diffstat (limited to 'io_export_dxf/primitive_exporters/viewborder_exporter.py')
0 files changed, 0 insertions, 0 deletions