diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-26 08:39:46 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-26 08:39:46 +0400 |
commit | e6251f6ae772e8a8b92112fc10edd7695b205e31 (patch) | |
tree | bee482923f4c752644f9810d664368752df35f75 /release/scripts/import_obj.py | |
parent | 6587c3c6baffcfde952dd4194f366361f61b5ca6 (diff) |
removed .parent by mistake in Object.c
made some of the importers raise a nice error if a file disnt exist rather then a python error. will eventually apply to all.
Diffstat (limited to 'release/scripts/import_obj.py')
-rw-r--r-- | release/scripts/import_obj.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/import_obj.py b/release/scripts/import_obj.py index 6849121934e..301f0abe88e 100644 --- a/release/scripts/import_obj.py +++ b/release/scripts/import_obj.py @@ -22,6 +22,7 @@ Note, This loads mesh objects and materials only, nurbs and curves are not suppo from Blender import * import BPyMesh import BPyImage +import BPyMessages # Generic path functions @@ -688,6 +689,9 @@ DEBUG= True def load_obj_ui(filepath): + if BPyMessages.Error_NoFile(filepath): + return + CREATE_SMOOTH_GROUPS= Draw.Create(0) CREATE_FGONS= Draw.Create(1) CREATE_EDGES= Draw.Create(1) |