Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-02-20 14:10:32 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-02-20 14:10:32 +0300
commit0bfa31efd96f0c213f67446631ee13c7574e1e42 (patch)
tree0df9d7a5332922d253e1f2dcb8ed65d336149345 /io_scene_fbx/import_fbx.py
parent81539bf9c200602975610a032f63ad8e03bbeb77 (diff)
FBX import: minor fixes (mostly, could try to load an image with None path...).
Diffstat (limited to 'io_scene_fbx/import_fbx.py')
-rw-r--r--io_scene_fbx/import_fbx.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 534cc739..ea8af762 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1312,6 +1312,8 @@ def blen_read_texture_image(fbx_tmpl, fbx_obj, basedir, settings):
filepath = elem_find_first_string(fbx_obj, b'Filename')
if not filepath:
print("Error, could not find any file path in ", fbx_obj)
+ print(" Falling back to: ", elem_name_utf8)
+ filepath = elem_name_utf8
else :
filepath = filepath.replace('\\', '/') if (os.sep == '/') else filepath.replace('/', '\\')
@@ -2055,7 +2057,8 @@ def load(operator, context, filepath="",
from . import parse_fbx
from .fbx_utils import RIGHT_HAND_AXES, FBX_FRAMERATES
- start_time = time.process_time()
+ start_time_proc = time.process_time()
+ start_time_sys = time.time()
# detect ascii files
if is_ascii(filepath, 24):
@@ -2889,5 +2892,6 @@ def load(operator, context, filepath="",
material.use_raytrace = False
_(); del _
- print('Import finished in %.4f sec.' % (time.process_time() - start_time))
+ print('Import finished in %.4f sec (process time: %.4f sec).' %
+ (time.time() - start_time_sys, time.process_time() - start_time_proc))
return {'FINISHED'}