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/icons
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/icons')
-rw-r--r--mesh_extra_tools/icons/icons.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/mesh_extra_tools/icons/icons.py b/mesh_extra_tools/icons/icons.py
index 92b7d0db..d98c8c06 100644
--- a/mesh_extra_tools/icons/icons.py
+++ b/mesh_extra_tools/icons/icons.py
@@ -1,28 +1,31 @@
import os
import bpy
import bpy.utils.previews
-
+
mesh_check_icon_collections = {}
mesh_check_icons_loaded = False
-
+
+
def load_icons():
global mesh_check_icon_collections
global mesh_check_icons_loaded
-
- if mesh_check_icons_loaded: return mesh_check_icon_collections["main"]
-
+
+ if mesh_check_icons_loaded:
+ return mesh_check_icon_collections["main"]
+
custom_icons = bpy.utils.previews.new()
-
+
icons_dir = os.path.join(os.path.dirname(__file__))
-
+
custom_icons.load("ngons", os.path.join(icons_dir, "ngon.png"), 'IMAGE')
custom_icons.load("triangles", os.path.join(icons_dir, "triangle.png"), 'IMAGE')
-
+
mesh_check_icon_collections["main"] = custom_icons
mesh_check_icons_loaded = True
-
+
return mesh_check_icon_collections["main"]
-
+
+
def clear_icons():
global mesh_check_icons_loaded
for icon in mesh_check_icon_collections.values():