Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijenstina <lijenstina@gmail.com>2017-05-21 08:26:34 +0300
committerlijenstina <lijenstina@gmail.com>2017-05-21 08:26:34 +0300
commit48a69db5444591ba88ca9794dbdb2b8d3a2c9984 (patch)
tree9e33a71a39736a8472bf039f6685c4b49c8b11ff /mesh_extra_tools/mesh_filletplus.py
parentaaeb073354aa00abb198c52af42dfbafeb7e069a (diff)
Mesh Extra Tools: Update to version 0.33, various fixes
Bump version to 0.33 Some Pep8 clean up and general fixes Some UI updates Replace Mesh to wall with a similar results script mesh_edges_floor_plan (for reasons see T51483) It is not 1 to 1 replacement but should be more stable If someone wants to continue development it's absolutely possible to be re-included later on Vertex Align: cleanup and refactor code introduce a stored alignment setting, proper help operator call move the property group to init, remove register call Mesh Check: cleanup Move the UI element draw code from init to the Face/Info select, cleanup mesh_info_select: Add a timer for redraw (not sure if it is the best solution) Add settings remove refresh operator (as edit mode is available) Mesh Edge Tools: remove the Intersect_Line_Face operator, add general error handling fix several crashes with non proper selections passed Select tools - replace deprecated imp call
Diffstat (limited to 'mesh_extra_tools/mesh_filletplus.py')
-rw-r--r--mesh_extra_tools/mesh_filletplus.py69
1 files changed, 35 insertions, 34 deletions
diff --git a/mesh_extra_tools/mesh_filletplus.py b/mesh_extra_tools/mesh_filletplus.py
index 025de0b0..442adb54 100644
--- a/mesh_extra_tools/mesh_filletplus.py
+++ b/mesh_extra_tools/mesh_filletplus.py
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
-# ***** BEGIN GPL LICENSE BLOCK *****
-#
+# ##### END GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -17,8 +16,7 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
-# ***** END GPL LICENCE BLOCK *****
-
+# ##### END GPL LICENSE BLOCK #####
bl_info = {
"name": "FilletPlus",
@@ -29,7 +27,6 @@ bl_info = {
"description": "",
"warning": "",
"wiki_url": "",
- "tracker_url": "",
"category": "Mesh"}
@@ -42,7 +39,10 @@ from bpy.props import (
from bpy.types import Operator
import bmesh
from mathutils import Matrix
-from math import cos, pi, degrees, sin, tan
+from math import (
+ cos, pi, sin,
+ degrees, tan,
+ )
def list_clear_(l):
@@ -298,36 +298,36 @@ class MESH_OT_fillet_plus(Operator):
bl_options = {"REGISTER", "UNDO"}
adj = FloatProperty(
- name="",
- description="Size of the filleted corners",
- default=0.1,
- min=0.00001, max=100.0,
- step=1,
- precision=3
- )
+ name="",
+ description="Size of the filleted corners",
+ default=0.1,
+ min=0.00001, max=100.0,
+ step=1,
+ precision=3
+ )
n = IntProperty(
- name="",
- description="Subdivision of the filleted corners",
- default=3,
- min=1, max=50,
- step=1
- )
+ name="",
+ description="Subdivision of the filleted corners",
+ default=3,
+ min=1, max=50,
+ step=1
+ )
out = BoolProperty(
- name="Outside",
- description="Fillet towards outside",
- default=False
- )
+ name="Outside",
+ description="Fillet towards outside",
+ default=False
+ )
flip = BoolProperty(
- name="Flip",
- description="Flip the direction of the Fillet\n"
- "Only available if Outside option is not active",
- default=False
- )
+ name="Flip",
+ description="Flip the direction of the Fillet\n"
+ "Only available if Outside option is not active",
+ default=False
+ )
radius = BoolProperty(
- name="Radius",
- description="Use radius for the size of the filleted corners",
- default=False
- )
+ name="Radius",
+ description="Use radius for the size of the filleted corners",
+ default=False
+ )
@classmethod
def poll(cls, context):
@@ -338,8 +338,8 @@ class MESH_OT_fillet_plus(Operator):
layout = self.layout
if f_buf.check is False:
- layout.label(text="Angle equal to 0 or 180", icon="INFO")
- layout.label("Can not fillet")
+ layout.label(text="Angle is equal to 0 or 180", icon="INFO")
+ layout.label(text="Can not fillet", icon="BLANK1")
else:
layout.prop(self, "radius")
if self.radius is True:
@@ -349,6 +349,7 @@ class MESH_OT_fillet_plus(Operator):
layout.prop(self, "adj")
layout.label("Number of sides:")
layout.prop(self, "n")
+
if self.n > 1:
row = layout.row(align=False)
row.prop(self, "out")