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:
authorGeoffrey Bantle <hairbat@yahoo.com>2008-08-20 23:10:33 +0400
committerGeoffrey Bantle <hairbat@yahoo.com>2008-08-20 23:10:33 +0400
commit6d7fa6020e08d1e7e9921e67a25534a54e373bd3 (patch)
tree8047875c8c43a2205b42a81cbeab6752d2ac8080 /release/scripts/flt_properties.py
parent7608dcfc51fd74af9617b83c66a11e7ca3fb5df5 (diff)
-> LOD and DOF editor scripts
Two new scripts for the 'Misc' Menu. LOD and DOF Editors for creating/editing DOF and LOD FLT nodes inside of blender.
Diffstat (limited to 'release/scripts/flt_properties.py')
-rw-r--r--release/scripts/flt_properties.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/release/scripts/flt_properties.py b/release/scripts/flt_properties.py
index bc7c972ca66..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':
@@ -267,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]