Skip to content

Commit

Permalink
Fix double green channel invert for normals
Browse files Browse the repository at this point in the history
  • Loading branch information
REDxEYE committed Feb 27, 2023
1 parent 5b524bc commit 534bb80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blender_bindings/operators/source2_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class SOURCEIO_OT_VMDLImport(bpy.types.Operator):
# invert_uv: BoolProperty(name="Invert UV", default=True)
import_physics: BoolProperty(name="Import physics", default=False)
import_attachments: BoolProperty(name="Import attachments", default=False)
lod_mask: IntProperty(name="Lod mask", default=-2147483648)
lod_mask: IntProperty(name="Lod mask", default=0xFFFF, subtype="UNSIGNED")
scale: FloatProperty(name="World scale", default=SOURCE2_HAMMER_UNIT_TO_METERS, precision=6)
files: CollectionProperty(name='File paths', type=bpy.types.OperatorFileListElement)

Expand Down
2 changes: 1 addition & 1 deletion blender_bindings/source2/vmdl_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def create_meshes(model_resource: CompiledModelResource, cm: ContentManager, con
for i, group in enumerate(data['m_meshGroups']):
group_masks[2 ** i] = group
else:
group_masks[0xFFFF_FFFF] = model_resource.name + '_ALL'
group_masks[0xFFFF] = model_resource.name + '_ALL'
for i, mesh in enumerate(data['m_refMeshes']):
mesh_mask = int(data['m_refMeshGroupMasks'][i])
lod_id = data['m_refLODGroupMasks'][i]
Expand Down

0 comments on commit 534bb80

Please sign in to comment.