summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-09FileAccessWindows: Cosmetic improvementsMax Hilbrunner
2021-08-09Fix Windows platform file accessMax Hilbrunner
This restores Windows platform file handling back to open files non-exlusively by default, as was the case before October 2018. (See https://github.com/godotengine/godot/commit/b902a2f2a7438810cdcb053568ed5c27089b1e8a) Back then, while fixing warnings for MSVC, the function used for opening files was changed from _wfopen() to _wfopen_s() as suggsted by the warning C4996. ("This function may be unsafe, consider using _wfopen_s instead.") This new function 1. did parameter validation and thus avoided some possible security issues due to nil pointers or wrongly terminated strings 2. it also changed the default file sharing for opened files from _SH_DENYNO (which was the implicit default for the previous _wfopen()) to _SH_SECURE. _SH_DENYNO means every opened file could be opened by other calls (like is the default on other operating systems). _SH_SECURE means if the file is opened with READ access, others can still read the same file, but if it is opened with WRITE access, others can't open it at all, not even to read. This led to rarely occuring bugs on Windows, i.e. due to random access by Antivirus processes, or Godot/Windows not closing a file handle fast enough while trying to open it again elsewhere (i.e. project.godot, instead showing the Project manager, or saving shaders/debugging the game). What this PR does it change the file access to a third method, _wfsopen(). This is still secure, doing parameter validation and thus avoids the warning, but it allows us to actually SET the file sharing parameter. And we set it to _SH_DENYNO, as it was implicitely before the change. (And as it currently is on all non-Windows platforms, where file sharing restrictions don't exist by default.) Warning C4996 should really have been pointing this out. It should've been _wfsopen() all along. Let's hope this banishes those annoying, rare errors for all eternity. Fixes #28036.
2021-08-07Merge pull request #51375 from Blackiris/fix-action-get-eventsRémi Verschelde
Fix action_get_events returning booleans instead of InputKey entries
2021-08-07Fix action_get_events returning booleans instead of InputKey entriesJulien Nguyen
2021-08-07Merge pull request #51356 from Chaosus/shader_dialogYuri Roubinsky
2021-08-07Added editor dialog for easily creating shaders.Yuri Roubinsky
2021-08-07Merge pull request #38547 from YeldhamDev/global_rate_scale_invertRémi Verschelde
Invert how `global_rate_scale` value works, and rename it to `playback_speed_scale`
2021-08-07Invert how `global_rate_scale` value works, and rename it to ↵Michael Alexsander
`playback_speed_scale`
2021-08-07Merge pull request #51360 from Paulb23/item-list-bg-colour-updateRémi Verschelde
2021-08-07Merge pull request #51355 from lawnjelly/fix_plane_xform_4_newRémi Verschelde
2021-08-07Merge pull request #51357 from raulsntos/fix-51342Rémi Verschelde
Fix Path3D initial forward calculation
2021-08-07Redraw on item list custom bg/fg colour changePaulb23
2021-08-07Merge pull request #51326 from ↵Rémi Verschelde
LightningAA/minor_view_rotation_gizmo_improvements-4.0 Minor visual improvements to the viewport rotation gizmo (again)
2021-08-07Fix Path3D initial forward calculationRaul Santos
2021-08-07Merge pull request #51328 from pycbouh/docs-inspector-plugins-classrefRémi Verschelde
Improve the inspector plugin documentation and remove a confusing statement
2021-08-07Merge pull request #51322 from raulsntos/fix-msbuild-exceptionRémi Verschelde
Ensure MSBuildPanel buttons are instantiated
2021-08-07Fix Transform::xform(Plane) functionslawnjelly
The Transform::xform and xform_inv are made safe for Planes when using non-uniform scaling. Optimization of calling sites to prevent loss of performance from the changes to xform(Plane).
2021-08-07Merge pull request #51353 from AndreaCatania/const_fixRémi Verschelde
Removes const from set functions on the Gizmos
2021-08-07Removes const from set functions on the GizmosAndreaCatania
2021-08-07Merge pull request #47700 from Calinou/editor-mouse-wheel-change-scene-tabsRémi Verschelde
Allow using the mouse wheel to navigate scene tabs
2021-08-07Merge pull request #51332 from Razoric480/fix-completion-scenelessRémi Verschelde
Fix LSP completion crashing on scene-less scripts
2021-08-06Merge pull request #51337 from naithar/fix/ios-plugin-initialization-in-apiRémi Verschelde
[4.0] [iOS] Use platform generated api to initialize iOS plugins
2021-08-06Minor visual improvements to the viewport rotation gizmo (again)Lightning_A
2021-08-06Ensure MSBuildPanel buttons are instantiatedRaul Santos
2021-08-06[iOS] Use platform generated api to initialize iOS pluginsSergey Minakov
2021-08-06Fix LSP completion crashing on scene-less scriptsFrancois Belair
2021-08-06Merge pull request #51319 from pycbouh/editor-fix-theme-item-descriptionsRémi Verschelde
Fix theme property descriptions in the Inspector
2021-08-06Improve the inspector plugin documentation and remove a confusing statementYuri Sizov
2021-08-06Merge pull request #51309 from Chaosus/fix_uniform_error_spamRémi Verschelde
Fix incorrect checking of uniform set to prevent error spam
2021-08-06Merge pull request #49924 from BastiaanOlij/mobile_render_subpassRémi Verschelde
Use subpasses to do 3D rendering and resolve in mobile renderer
2021-08-06Fix theme property descriptions in the InspectorYuri Sizov
2021-08-06Merge pull request #51314 from georgwacker/fix-vertical-precision-scrollRémi Verschelde
Fix vertical scroll/zoom for precision touchpad on windows
2021-08-06Use subpasses to do 3D rendering and resolve in mobile rendererBastiaan Olij
2021-08-06Fix vertical scroll/zoom for precision touchpadGeorg Wacker
Adds factor data for vertical mousewheel event, in line with horizontal mousewheel event
2021-08-06Merge pull request #50487 from ↵Rémi Verschelde
akien-mga/clang-warning-Wordered-compare-function-pointers
2021-08-06HTML5: Fix warnings and re-enable `werror=yes` on CIRémi Verschelde
Add a missing call to disable warnings on a forked env for freetype's `sfnt.c`.
2021-08-06SCons: Add method to detect Emscripten and use it for warnings configRémi Verschelde
Emscripten is LLVM-based so we want to follow the same logic. But we can't just put it as a match in `methods.using_clang()` as that would mess with the compiler version detection logic used to restrict old GCC and Clang releases.
2021-08-06SCons: Disable Clang -Wordered-compare-function-pointers warningRémi Verschelde
It's raised for us on many comparators implemented to be able to store a struct in `Set` or `Map` (who rely on `operator<` internally). In the cases I reviewed we don't actually care about the ordering and we use the struct's function pointers as that's the only distinctive data available.
2021-08-06Merge pull request #46505 from akien-mga/os-fix-used-resources-debug-printsRémi Verschelde
OS: Fix used resource debug prints
2021-08-06Merge pull request #51082 from ellenhp/fix_cubic_resamplingRémi Verschelde
2021-08-06Fix incorrect checking of uniform set to prevent error spamYuri Roubinsky
2021-08-06OS: Fix used resource debug printsRémi Verschelde
These methods were broken by 22419082d9bedbc9dc060ea5784bb0871f8710a3 5 years ago and nobody complained, so maybe they're not so useful... But at least this should restore them to a working state.
2021-08-06Merge pull request #51214 from Calinou/update-spinner-highlight-when-continuousRémi Verschelde
Change the editor update spinner color when updating continuously
2021-08-06Merge pull request #51234 from akien-mga/tests-file-get_csv_lineRémi Verschelde
Tests: Improve coverage for `File::get_csv_line()`
2021-08-06Merge pull request #51283 from Razoric480/lsp-parse-fromRémi Verschelde
Fix LSP parsing get_node only from the scene root
2021-08-06Merge pull request #51301 from Faless/mp/4.x_gd_default_rpcRémi Verschelde
[Net] Default @rpc annotation should be puppet, not master.
2021-08-06Merge pull request #51008 from raulsntos/csharp-renamesRémi Verschelde
2021-08-06Merge pull request #51300 from Faless/enet/4.x_fix_status_connectRémi Verschelde
[Net] Fix ENetMultiplayerPeer status during connection.
2021-08-06Merge pull request #51290 from V-Sekai/less-reset-spamRémi Verschelde
Animation RESET spam less patch 2
2021-08-06Merge pull request #51297 from aaronfranke/shader-param-cacheYuri Roubinsky
Preserve original name in shader params cache