revamp installing fonts
This commit is contained in:
parent
5e881ad864
commit
28e664cd6c
3 changed files with 53 additions and 10 deletions
|
@ -509,7 +509,7 @@ def clear_available_fonts():
|
|||
|
||||
def load_installed_fonts():
|
||||
preferences = getPreferences(bpy.context)
|
||||
font_dir = f"{preferences.assets_dir}/fonts"
|
||||
font_dir = os.path.join(preferences.assets_dir,"fonts")
|
||||
for file in os.listdir(font_dir):
|
||||
if file.endswith(".glb") or file.endswith(".gltf"):
|
||||
font_path = os.path.join(font_dir, file)
|
||||
|
@ -522,7 +522,7 @@ def load_installed_fonts():
|
|||
|
||||
def register_installed_fonts():
|
||||
preferences = getPreferences(bpy.context)
|
||||
font_dir = f"{preferences.assets_dir}/fonts"
|
||||
font_dir = os.path.join(preferences.assets_dir,"fonts")
|
||||
for file in os.listdir(font_dir):
|
||||
if file.endswith(".glb") or file.endswith(".gltf"):
|
||||
font_path = os.path.join(font_dir, file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue