This is an update of the french translation, patch from
Erwan Jacq (eon) - .mo to follow This is also a partial fix of bug 8272 X3D export issues the rest of the bug might be already fixed in CVS
This commit is contained in:
@@ -165,7 +165,6 @@ class VRML2Export:
|
|||||||
#bfile = sys.expandpath( Blender.Get('filename') ).replace('<', '<').replace('>', '>')
|
#bfile = sys.expandpath( Blender.Get('filename') ).replace('<', '<').replace('>', '>')
|
||||||
bfile = self.filename.replace('<', '<').replace('>', '>') # use outfile name
|
bfile = self.filename.replace('<', '<').replace('>', '>') # use outfile name
|
||||||
self.file.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
self.file.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
|
||||||
print "fooe"
|
|
||||||
self.file.write("<!DOCTYPE X3D PUBLIC \"ISO//Web3D//DTD X3D 3.0//EN\" \"http://www.web3d.org/specifications/x3d-3.0.dtd\">\n")
|
self.file.write("<!DOCTYPE X3D PUBLIC \"ISO//Web3D//DTD X3D 3.0//EN\" \"http://www.web3d.org/specifications/x3d-3.0.dtd\">\n")
|
||||||
self.file.write("<X3D version=\"3.0\" profile=\"Immersive\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema-instance\" xsd:noNamespaceSchemaLocation=\"http://www.web3d.org/specifications/x3d-3.0.xsd\">\n")
|
self.file.write("<X3D version=\"3.0\" profile=\"Immersive\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema-instance\" xsd:noNamespaceSchemaLocation=\"http://www.web3d.org/specifications/x3d-3.0.xsd\">\n")
|
||||||
self.file.write("<head>\n")
|
self.file.write("<head>\n")
|
||||||
@@ -248,14 +247,14 @@ class VRML2Export:
|
|||||||
def writeNavigationInfo(self, scene):
|
def writeNavigationInfo(self, scene):
|
||||||
allObj = []
|
allObj = []
|
||||||
allObj = list(scene.objects)
|
allObj = list(scene.objects)
|
||||||
headlight = "TRUE"
|
headlight = "true"
|
||||||
vislimit = 0.0
|
vislimit = 0.0
|
||||||
for thisObj in allObj:
|
for thisObj in allObj:
|
||||||
objType=thisObj.type
|
objType=thisObj.type
|
||||||
if objType == "Camera":
|
if objType == "Camera":
|
||||||
vislimit = thisObj.data.clipEnd
|
vislimit = thisObj.data.clipEnd
|
||||||
elif objType == "Lamp":
|
elif objType == "Lamp":
|
||||||
headlight = "FALSE"
|
headlight = "false"
|
||||||
self.file.write("<NavigationInfo headlight=\"%s\" " % headlight)
|
self.file.write("<NavigationInfo headlight=\"%s\" " % headlight)
|
||||||
self.file.write("visibilityLimit=\"%s\" " % (round(vislimit,self.cp)))
|
self.file.write("visibilityLimit=\"%s\" " % (round(vislimit,self.cp)))
|
||||||
self.file.write("type=\"EXAMINE\", \"ANY\" avatarSize=\"0.25, 1.75, 0.75\" />\n\n")
|
self.file.write("type=\"EXAMINE\", \"ANY\" avatarSize=\"0.25, 1.75, 0.75\" />\n\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user