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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-13 00:16:53 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-11-13 00:16:53 +0300
commitbdfe7d89e2f1292644577972c716931b4ce3c6c3 (patch)
treed00eb50b749cb001e2b08272c91791e66740b05d /release/scripts/flt_properties.py
parent78a1c27c4a6abe0ed31ca93ad21910f3df04da56 (diff)
parent7e4db234cee71ead34ee81a12e27da4bd548eb4b (diff)
Merge of trunk into blender 2.5:
svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r12987:17416 Issues: * GHOST/X11 had conflicting changes. Some code was added in 2.5, which was later added in trunk also, but reverted partially, specifically revision 16683. I have left out this reversion in the 2.5 branch since I think it is needed there. http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16683 * Scons had various conflicting changes, I decided to go with trunk version for everything except priorities and some library renaming. * In creator.c, there were various fixes and fixes for fixes related to the -w -W and -p options. In 2.5 -w and -W is not coded yet, and -p is done differently. Since this is changed so much, and I don't think those fixes would be needed in 2.5, I've left them out. * Also in creator.c: there was code for a python bugfix where the screen was not initialized when running with -P. The code that initializes the screen there I had to disable, that can't work in 2.5 anymore but left it commented as a reminder. Further I had to disable some new function calls. using src/ and python/, as was done already in this branch, disabled function calls: * bpath.c: error reporting * BME_conversions.c: editmesh conversion functions. * SHD_dynamic: disabled almost completely, there is no python/. * KX_PythonInit.cpp and Ketsji/ build files: Mathutils is not there, disabled. * text.c: clipboard copy call. * object.c: OB_SUPPORT_MATERIAL. * DerivedMesh.c and subsurf_ccg, stipple_quarttone. Still to be done: * Go over files and functions that were moved to a different location but could still use changes that were done in trunk.
Diffstat (limited to 'release/scripts/flt_properties.py')
-rw-r--r--release/scripts/flt_properties.py40
1 files changed, 26 insertions, 14 deletions
diff --git a/release/scripts/flt_properties.py b/release/scripts/flt_properties.py
index 07bcc8def1d..4c841e9c0c0 100644
--- a/release/scripts/flt_properties.py
+++ b/release/scripts/flt_properties.py
@@ -197,7 +197,10 @@ def write_prop(fw,type,value,length):
elif type == 'i':
fw.write_int(value)
elif type == 'I':
- fw.write_uint(value)
+ #NOTE!:
+ #there is no unsigned int type in python, but we can only store signed ints in ID props
+ newvalue = struct.unpack('>I', struct.pack('>i', value))[0]
+ fw.write_uint(newvalue)
elif type == 'd':
fw.write_double(value)
elif type == 'f':
@@ -227,6 +230,14 @@ def read_prop(fw,type,length):
rval = fw.read_string(length)
return rval
+
+FLTExt = {
+ '3t8!id' : 'Ext',
+ '4t8!sid' : '',
+ '5c!reserved': 0,
+ '6c!revision' : 0,
+ '7S!recordcode' : 0
+}
FLTGroup = {
'3t8!id' : 'G',
'4s!priority' : 0,
@@ -259,16 +270,16 @@ FLTObjectDisplay = [10]
FLTLOD = {
'3t8!id' : 'L',
'4i!reserved' : 0,
- '5d!switch in' : 0,
- '6d!switch out' : 0,
+ '5d!switch in' : 0.0,
+ '6d!switch out' : 0.0,
'7s!sfx ID1' : 0,
'8s!sfx ID2' : 0,
'9I!flags' : 0,
- '10d!X co' : 0,
- '11d!Y co' : 0,
- '12d!Z co' : 0,
- '13d!Transition' : 0,
- '14d!Sig Size' : 0
+ '10d!X co' : 0.0,
+ '11d!Y co' : 0.0,
+ '12d!Z co' : 0.0,
+ '13d!Transition' : 0.0,
+ '14d!Sig Size' : 0.0
}
FLTLODDisplay = [4]
@@ -280,7 +291,7 @@ FLTInlineLP = {
'7C!back color: b' : 255,
'8C!back color: g' : 255,
'9C!back color: r' : 255,
- '10i!display mode' : 255,
+ '10i!display mode' : 0,
'11f!intensity' : 1.0,
'12f!back intensity' : 0.0,
'13f!minimum defocus' : 0.0,
@@ -305,15 +316,15 @@ FLTInlineLP = {
'32f!lobe roll angle' : 0.0,
'33f!dir falloff exponent' : 1.0,
'34f!dir ambient intensity' : 0.1,
- '35f!anim period' : 0,
+ '35f!anim period' : 2,
'36f!anim phase' : 0,
- '37f!anim enabled' : 0,
+ '37f!anim enabled' : 1.0,
'38f!significance' : 0.0,
'39i!draw order' : 0,
- '40I!flags' : 813875616,
+ '40I!flags' : 277004288,
'41f!roti' : 0,
'42f!rotj' : 0,
- '43f!rotk' : 0
+ '43f!rotk' : 1.0
}
FLTInlineLPDisplay = [35,36,37,41,42,43]
@@ -388,7 +399,7 @@ FLTImage = {
'5i!UpX' : 0,
'6i!UpY' : 0,
'7i!File Format' : 0,
- '8i!Min Filter' : 1,
+ '8i!Min Filter' : 6,
'9i!Mag Filter' : 1,
'10i!Wrap' : 0,
'11i!WrapU' : 0,
@@ -587,6 +598,7 @@ FLT_Records = {
14 : FLTDOF,
1 : FLTHeader,
111 : FLTInlineLP,
+ 100 : FLTExt,
'Image' : FLTImage
}