3 Commits

Author SHA1 Message Date
SleepKiller
b56fa79a19 update version number 2020-02-04 14:44:22 +13:00
SleepKiller
47fa855b78 fixed colour packing order 2020-02-04 14:28:34 +13:00
SleepKiller
2010dd21b2 correct -keepmaterial documentation
Thanks to Fox!
2020-01-31 04:32:11 +13:00
3 changed files with 4 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
bl_info = {
'name': 'SWBF .msh export',
'author': 'SleepKiller',
"version": (0, 2, 0),
"version": (0, 2, 1),
'blender': (2, 80, 0),
'location': 'File > Import-Export',
'description': 'Export as SWBF .msh file',

View File

@@ -23,8 +23,8 @@ def min_vec(l: Vector, r: Vector) -> Vector:
def pack_color(color) -> int:
packed = 0
packed |= (int(color[0] * 255.0 + 0.5) << 8)
packed |= (int(color[1] * 255.0 + 0.5) << 16)
packed |= (int(color[0] * 255.0 + 0.5) << 16)
packed |= (int(color[1] * 255.0 + 0.5) << 8)
packed |= (int(color[2] * 255.0 + 0.5))
packed |= (int(color[3] * 255.0 + 0.5) << 24)

View File

@@ -536,9 +536,7 @@ Keep all named objects in the .msh file as hardpoints.
#### -keepmaterial
- Usage Example: `-keepmaterial override_texture`
By default material names are not saved in .model files. And meshes referencing differently named materials but with identical names may be merged together to boost performance.
By specifying "-keepmaterial" for a material modelmunge is instructed to keep the name of a material around and to not merge meshes using the material with others that aren't.
Prevents the named object being marged with other objects by modelmunge and gives the object's .model material the same name as the object.
This is used with the "OverrideTexture", "OverrideTexture2" and "WheelTexture" .odf properties.