summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2019-03-19Improved uniformity of RandomPCG::randf.toasteater
When generating single precision floats, Godot casts a uint32_t to float, causing uniformity loss. This new randf, inspired by T. R. Campbell's random_real, samples the output of rand as the fraction part of an infinite binary number, with some tricks to reduce ops and branching. This method provides "good enough" uniformity at decent speed, for floats greater than 2^-64. Smaller numbers are floored to 0.
2019-03-16Merge pull request #25495 from IronicallySerious/fix-expand-macrosRémi Verschelde
Fix parameterised macros in core. Addresses #25488
2019-03-09Merge pull request #26851 from RandomShaper/fix-26460-fake-event-floodRémi Verschelde
Fix fake null-motion mouse event flood
2019-03-09Fix fake null-motion mouse event floodPedro J. Estébanez
This commit also improves a bit the code quality by making the intent of fake events (and themselves) more explicit. Fixes #26460.
2019-03-09Merge pull request #26818 from vnen/class_name-inheritanceRémi Verschelde
Allow class_name scripts to have nested inheritance
2019-03-09Allow class_name scripts to have nested inheritanceGeorge Marques
2019-03-08Request Android record permission when neededDESKTOP-3H3MR3A\eloisa
2019-03-07Merge pull request #26745 from akien-mga/android-modules-defRémi Verschelde
Define android/modules globally so it appears in Project Settings
2019-03-07Fix -Wc++11-extensions warning after #26737Rémi Verschelde
Fixes #26769.
2019-03-07Ensure ETC2 textures are ALSO compressed to Po2 when have mipmaps. Fixes #26733Juan Linietsky
2019-03-07Define android/modules globally so it appears in Project SettingsRémi Verschelde
Until now people had to add it manually to project.godot to load custom modules.
2019-03-07Fixed get_seed() not returning the correct seed.MidZik
2019-03-06Merge pull request #26665 from bojidar-bg/19704-singleton-constantsRémi Verschelde
Fix enums coming from other classes without preload
2019-03-06Safer way to update animation if changed, fixes #26670Juan Linietsky
2019-03-05Use GCC builtins for bswap as compiler can then emit these via instructions.marxin
Using current macros, one get for: static inline int BSWAP32(int x) { return ((x << 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x >> 24)); } int main(int argc, char **argv) { return BSWAP32(argc); } main: .LFB1: .cfi_startproc movl %edi, %eax movl %edi, %edx sarl $24, %edx sall $24, %eax orl %edx, %eax movl %edi, %edx sarl $8, %edi sall $8, %edx andl $65280, %edi andl $16711680, %edx orl %edx, %eax orl %edi, %eax ret while using: int main(int argc, char **argv) { return __builtin_bswap32(argc); } one gets: main: .LFB0: .cfi_startproc movl %edi, %eax bswap %eax ret
2019-03-05Fix enums coming from other classes without preloadBojidar Marinov
Fix #19704, fix #26001
2019-03-05Merge pull request #26629 from bojidar-bg/18386-object-callv-errorsRémi Verschelde
Print errors comming from callv
2019-03-05Print errors comming from callvBojidar Marinov
Fixes #18386
2019-03-05Merge pull request #26614 from MarianoGnu/tileset_editorHein-Pieter van Braam
TileSet/TileMap: Decompose solid non-convex polygons into convexes.
2019-03-04TileSet/TileMap: Decompose solid non-convex polygons into convexes. Real fix ↵Mariano Suligoy
for #24003
2019-03-04Make sure ResurceLoader.exists works on imported files, fixes #23555Juan Linietsky
2019-03-04Better warnings when resources can't be saved. Fixes #26531Juan Linietsky
2019-03-04More style cleanup...Rémi Verschelde
2019-03-03Add support for event accumlation (off by default, on for editor), fixes #26536Juan Linietsky
2019-03-03Merge pull request #26547 from vnen/gdscript-dependency-parseJuan Linietsky
Add a parse mode for GDScript which doesn't load dependencies
2019-03-03Implement a more coherent (and way less hack) way to block animation ↵Juan Linietsky
updates, fixes #24618
2019-03-03Ability to keep pumping messages while being debugged, may be a solution for ↵Juan Linietsky
#21431
2019-03-03Add function to get String from FileAccessGeorge Marques
2019-03-03Merge pull request #25934 from mrcdk/pool_int_real_color_interpolateRémi Verschelde
Added PoolIntArray, PoolRealArray and PoolColorArray interpolate
2019-03-01Scale quickhull tolerance with mesh sizeHein-Pieter van Braam
Taken from three.js's implementation. Tested with a wide variety of meshes.
2019-03-01Clean up blend shape support in GLES2 and GLES3.Juan Linietsky
2019-02-27-Fix problem of order of import plugins, closes #26340Juan Linietsky
-Ensure resource previewer does not start until first import is done
2019-02-27Merge pull request #26159 from marxin/fix-Wsuggest-attribute=formatRémi Verschelde
Fix -Wsuggest-attribute=format warnings.
2019-02-27Merge pull request #26134 from marxin/fix-Wsign-compareRémi Verschelde
Fix -Wsign-compare warnings.
2019-02-27Fix GCC 5 build after #26331 and cleanup styleRémi Verschelde
Also cleanup after 01a3dd3.
2019-02-27Fix -Wsign-compare warnings.marxin
I decided to modify code in a defensive way. Ideally functions like size() or length() should return an unsigned type.
2019-02-27Fix -Wsuggest-attribute=format warnings.marxin
2019-02-26-Properly handle missing ETC support on exportJuan Linietsky
-Added ability for resource importers to save metadata -Added ability for resource importers to validate depending on project settings
2019-02-26-Remove harcoded opengl extension testing from OS, ask rasterizer instead.Juan Linietsky
-Fixed a bug where etc textures were imported broken
2019-02-26Remove setting that caused is_inside_tree() errors on doppler tracking enabled.Juan Linietsky
2019-02-25Several fixes to make GLES2 on HTML5 work much better.Juan Linietsky
Changed math class error reporting to be a bit less paranoid.
2019-02-25Revert "Fix 'UndoRedo's 'MERGE_ALL' mode repeating instructions when quickly ↵Michael Alexsander Silva Dias
commiting actions" This reverts commit 79f1d8b4fbac564cb55669bbf05034bb9e15ae4a.
2019-02-25Fix wrapi to use int64_t instead intChaosus
2019-02-24Ensure all properties are refreshed when setting a script, fixes #24845Juan Linietsky
2019-02-24Prevent circular references to scene being saved, fixes #24384Juan Linietsky
2019-02-24Merge pull request #26171 from Calinou/fix-wrapi-crashRémi Verschelde
Fix crash when using `wrapi()` with a range of zero
2019-02-23Fix crash when using `wrapi()` with a range of zeroHugo Locurcio
`wrapi()` and `wrapf()` will now return the value of the `min` parameter if the range is equal to zero.
2019-02-23Make allowed pid for window takeover happen immediately, fixes #21431Juan Linietsky
2019-02-22Don't crash when parse_utf8 receives a NULL pointerHein-Pieter van Braam
This can happen when chaining calls to various string methods when the string is empty.
2019-02-22Merge pull request #26129 from YeldhamDev/undoredo_merge_all_fixRémi Verschelde
Fix 'UndoRedo's 'MERGE_ALL' mode repeating instructions when quickly commiting actions