* New upstream release. * Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this version blender is 64 bits safe again. Adjust README.Debian accordingly.
from Blender import Mesh, Scene, Window, sys, Image, Draw
51
51
import BPyMesh
52
52
import BPyObject
53
53
import BPySys
54
54
import BPyMessages
55
55
56
56
# Returns a tuple - path,extension.
69
69
return name.replace(' ', '_')
70
70
71
71
# Used to add the scene name into the filename without using odd chars
72
def saneFilechars(name):
73
for ch in ' /\\~!@#$%^&*()+=[];\':",./<>?\t\r\n':
74
name = name.replace(ch, '_')
75
return name
76
77
72
global MTL_DICT
78
73
79
74
# A Dict of Materials
615
610
orig_frame = Blender.Get('curframe')
616
611
617
612
if EXPORT_ALL_SCENES: # Add scene name into the context_name
618
context_name[1] = '_%s' % saneFilechars(scn.name) # WARNING, its possible that this could cause a collision. we could fix if were feeling parranoied.
613
context_name[1] = '_%s' % BPySys.cleanName(scn.name) # WARNING, its possible that this could cause a collision. we could fix if were feeling parranoied.