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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-04 17:01:18 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-04 17:01:18 +0400
commit3226b33e4852f58c2ebc9d28beee2e03278bd2d9 (patch)
tree924d044ace142efa85d104459a3125ca7129114b /release/scripts/3ds_import.py
parent2f7cd19ff520ff5a1a0f80a55cc5e68c802b7df5 (diff)
python geometry function Geometry.BezierInterp(vec_knot_1, vec_handle_1, vec_handle_2, vec_knot_2, resolution)
can use 2D-4D vectors Also made 3ds import give a message when no python installed
Diffstat (limited to 'release/scripts/3ds_import.py')
-rw-r--r--release/scripts/3ds_import.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/release/scripts/3ds_import.py b/release/scripts/3ds_import.py
index 1963d2e7433..bcde82c4869 100644
--- a/release/scripts/3ds_import.py
+++ b/release/scripts/3ds_import.py
@@ -133,10 +133,12 @@ import BPyImage
import BPyMessages
-import struct
-from struct import calcsize, unpack
+try:
+ from struct import calcsize, unpack
+except:
+ calcsize= unpack= None
+
-import os
# If python version is less than 2.4, try to get set stuff from module
try:
@@ -958,7 +960,10 @@ def load_3ds(filename, PREF_UI= True):
DEBUG= False
if __name__=='__main__' and not DEBUG:
- Blender.Window.FileSelector(load_3ds, 'Import 3DS', '*.3ds')
+ if calcsize==None:
+ Blender.Draw.PupMenu('Error%t|a full python installation not found')
+ else:
+ Blender.Window.FileSelector(load_3ds, 'Import 3DS', '*.3ds')
# For testing compatibility
#load_3ds('/metavr/convert/vehicle/truck_002/TruckTanker1.3DS', False)
@@ -966,6 +971,7 @@ if __name__=='__main__' and not DEBUG:
'''
else:
+ import os
# DEBUG ONLY
TIME= Blender.sys.time()
import os