archipack: remove thumbs and hide presets for bl_load_py_modules.py
|
@ -0,0 +1,8 @@
|
|||
DEFAULT##|##Wall_inside
|
||||
DEFAULT##|##Wall_outside
|
||||
DEFAULT##|##Wall_cuts
|
||||
DEFAULT##|##Wall_alt1
|
||||
DEFAULT##|##Wall_alt2
|
||||
DEFAULT##|##Wall_alt3
|
||||
DEFAULT##|##Wall_alt4
|
||||
DEFAULT##|##Wall_alt5
|
After Width: | Height: | Size: 1.2 KiB |
|
@ -235,19 +235,19 @@ class PresetMenu():
|
|||
self.imageList.append(self.default_image.filepath_raw)
|
||||
return
|
||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
sub_path = "presets" + os.path.sep + "missing.png"
|
||||
sub_path = "_presets" + os.path.sep + "missing.png"
|
||||
filepath = os.path.join(dir_path, sub_path)
|
||||
if os.path.exists(filepath) and os.path.isfile(filepath):
|
||||
self.default_image = bpy.data.images.load(filepath=filepath)
|
||||
self.imageList.append(self.default_image.filepath_raw)
|
||||
if self.default_image is None:
|
||||
raise EnvironmentError("archipack/presets/missing.png not found")
|
||||
raise EnvironmentError("archipack/_presets/missing.png not found")
|
||||
|
||||
def scan_files(self, category):
|
||||
file_list = []
|
||||
# load default presets
|
||||
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||
sub_path = "presets" + os.path.sep + category
|
||||
sub_path = "_presets" + os.path.sep + category
|
||||
presets_path = os.path.join(dir_path, sub_path)
|
||||
if os.path.exists(presets_path):
|
||||
file_list += [presets_path + os.path.sep + f[:-3]
|
||||
|
|
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 3.8 KiB |