bugfix [#25290] Align on text gives a traceback
[#25284] Traceback error on "System Info" script - Align was only working on mesh objects, now operate on all objects, missing boundbox's are treated as single points. - obj.bound_box was returning all nan's for object types with no boundbox. - ENUM_FLAG type enums were showing no text when displayed in operator redo panel.
This commit is contained in:
@@ -560,7 +560,7 @@ def keyconfig_set(filepath):
|
||||
keyconfigs.active = kc_new
|
||||
|
||||
|
||||
def user_resource(type, path, create=False):
|
||||
def user_resource(type, path="", create=False):
|
||||
"""
|
||||
Return a user resource path (normally from the users home directory).
|
||||
|
||||
@@ -588,7 +588,7 @@ def user_resource(type, path, create=False):
|
||||
traceback.print_exc()
|
||||
target_path = ""
|
||||
elif not _os.path.isdir(target_path):
|
||||
print("Path %r found but isn't a directory!" % path)
|
||||
print("Path %r found but isn't a directory!" % target_path)
|
||||
target_path = ""
|
||||
|
||||
return target_path
|
||||
|
||||
Reference in New Issue
Block a user