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:
authorChris Want <cwant@ualberta.ca>2006-04-05 23:28:21 +0400
committerChris Want <cwant@ualberta.ca>2006-04-05 23:28:21 +0400
commit8b94135add231ad1762f450730fe042da091832a (patch)
treeb98c2e14ccd6f8c1282c60b049afa45ff8d280dd /release/scripts
parent086cb9d7934c492f2e08b0546ab8e3367fc10235 (diff)
For 3ds import script, try to get set() function by importing the
function Set() from sets (stoopid python!) if the python version is less than 2.4. Campbell: please check!
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/3ds_import.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/3ds_import.py b/release/scripts/3ds_import.py
index 2af387c7fe6..27c664c9859 100644
--- a/release/scripts/3ds_import.py
+++ b/release/scripts/3ds_import.py
@@ -84,6 +84,11 @@ from struct import calcsize, unpack
import os
+# If python version is less than 2.4, try to get set stuff from module
+import sys
+if ( (sys.version_info[0] <= 2) and (sys.version_info[1] < 4) ):
+ from sets import Set as set
+
#this script imports uvcoords as sticky vertex coords
#this parameter enables copying these to face uv coords
#which shold be more useful.
@@ -780,4 +785,4 @@ for i, _3ds in enumerate(lines):
load_3ds(_3ds)
print 'TOTAL TIME: %.6f' % (Blender.sys.time() - TIME)
-''' \ No newline at end of file
+'''