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:
2010-12-19 07:05:29 +00:00
parent 096369e89d
commit c26cc0afa1
6 changed files with 171 additions and 144 deletions

View File

@@ -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