Fix MSVC build errors and Blender preview crash #1
Loading…
Reference in a new issue
No description provided.
Delete branch "colby.fox/msvc-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two fixes found while setting up a Windows dev machine.
1. MSVC build errors (
994a2fc)The editor target does not compile with MSVC (VS 2026, toolset 14.51). Clang on Linux doesn't flag these, but MSVC treats them as errors:
Owner,MeshandInstigatorhideAActor/ACharactermembers in TFWeapon, TFGrunt and TFMech. They're renamed toOwnerActor,PartMesh/RifleMeshandDamageInstigator.FObstaclenow uses the existing floatHorizontalinstead of narrowing the doubleVelocity.Size2D()in a brace initializer.These are renames only, with no behaviour change. TitanFoxEditor Win64 Development now builds (
Result: Succeeded).2. Blender preview crash (
9e176d0)make_props.render_previewprintedprefs.devices, butprefsis local toenable_gpu. So every--previewrun crashed with a NameError after rendering, on any platform. It now usesenable_gpu's return value and logs e.g.preview rendered on OPTIX: ['NVIDIA GeForce RTX 5070'].Tested on Windows 11 / RTX 5070: the editor build, PIE, the standalone
-TFDemo(the Nyx mech crouches at x~8200 and stands again after the catwalk),make_pilot_rifle.py --previewon OptiX, and the headlessimport_effects.py.?? Generated with Claude Code
Fix MSVC build errors (C4458 shadowing, C2397 narrowing)to Fix MSVC build errors and Blender preview crashView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.