summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)Author
2017-09-19Merge pull request #10748 from Cradmon/fixCoreSetRémi Verschelde
Refactor core/set.h
2017-09-19Merge pull request #11208 from kitsune/hex-color-shortcutsRémi Verschelde
Adds 3 and 4 digit html shortcuts to Color
2017-09-19Merge pull request #11388 from hpvb/fix-missing-return-failRémi Verschelde
Be type-strict checking on equality checks
2017-09-19Allow booleanization of all typesHein-Pieter van Braam
We now allow booleanization of all types. This means that empty versions of all types now evaluate to false. So a Vector2(0,0), Dictionary(), etc. This allows you to write GDScript like: if not Dictionary(): print("Empty dict") Booleanization can now also no longer fail. There is no more valid flag, this changes Variant and GDNative API.
2017-09-19Merge pull request #11405 from karroffel/new-hashmapRémi Verschelde
added OAHashMap type
2017-09-19added OAHashMap typeKarroffel
2017-09-19Be type-strict checking on equality checksHein-Pieter van Braam
After a short discussion with @reduz and @karroffel we decided to make all non number/number comparisons return type errors on comparisons. Now bool == bool is allowed but Vector2 == Vector3 is a type error and no longer 'not equal'. The same has been done for the != operators. In addition I forgot to add some failures to some Object operators meaning that there was a potential for a crasher.
2017-09-19Merge pull request #11402 from hpvb/remove-gdscript-checks-on-releaseRémi Verschelde
Various GDScript performance tweaks
2017-09-19Don't call Variant::reference() unnecessarilyHein-Pieter van Braam
operator= does not need to call reference() if the new value is of the same type as the old. This saves us zeroing the Variant, This speeds up reuse of a Variant in a loop by roughly 50%.
2017-09-19Merge pull request #11386 from kosz78/fix-msvc-compile-errorsRémi Verschelde
Fix MSVC compilation errors
2017-09-19Fix accidental cast to Vector3 for Vector2 iterHein-Pieter van Braam
2017-09-19Fixed Typo: 'Seperate' to 'Separate'Indah Sylvia
2017-09-19Fix MSVC compilation errorsKonstantin Zaitsev
2017-09-17Move Variant::evaluate() switch to computed gotoHein-Pieter van Braam
In an effort to make GDScript a little faster replace the double switch() with a computed goto on compilers that set __GNUC__. For compilers that don't support computed goto it will fall back to regular switch/case statements. In addition disable using boolean values in a mathematical context. Now boolean values can only be compared with other booleans. Booleans will also no longer be coerced to integers. This PR replaces #11308 and fixes #11291
2017-09-17Fix x11 exported executables not getting the +x flagMarcelo Fernandez
2017-09-17Merge pull request #11294 from karroffel/json-objectThomas Herzog
added JSON singleton
2017-09-17Merge pull request #11272 from Rubonnek/move-to-initializer-listRémi Verschelde
Moved class_name and return_val to initializer list
2017-09-17Merge pull request #11176 from bncastle/masterRémi Verschelde
Implement +,-,/, * and negate operators for Color type
2017-09-17Merge pull request #11343 from BastiaanOlij/fix_basenameRémi Verschelde
Fixed naming of pck file
2017-09-17Fixed naming of pck fileBastiaan Olij
2017-09-17Merge pull request #11223 from GodotExplorer/pr-undoredoPoommetee Ketson
Expose more methods for UndoRedo
2017-09-16Implement +,-,/, * and negate operators for Color type.bncastle
2017-09-16Adds _OS::PowerState enumIgnacio Etcheverry
2017-09-15added JSON singletonkarroffel
There was no way to access JSON functionality in scripting languages apart from GDScript because the JSON class wasn't exposed to ClassDB.
2017-09-15Merge pull request #11230 from maxim-sheronov/fix_enum_bindingsThomas Herzog
Fix enums bindings
2017-09-14Moved class_name and return_val to initializer listWilson E. Alvarez
2017-09-14Construct Variants from Reference properly in GDNativeRuslan Mustakov
Previously godot_variant_new_object constructed Variant without accounting for the fact that the Object can be a Reference, so refcount was not increased and References were destructed prematurely. Also, Reference::init_ref did not propagate refcount increment to the script instance, which led to desync of refcount info on the script side and Godot side.
2017-09-13Drop unused EventQueue classRémi Verschelde
Thanks to @Marqin for the notice.
2017-09-13Fix enums bindingsMaxim Sheronov
Add missed bindings for enums Move some enums to class to have correct output of api.json
2017-09-13Added a crash handler to dump the backtrace on Windows, Linux and OS XMarcelo Fernandez
2017-09-13Merge pull request #11062 from BastiaanOlij/osx_datapackRémi Verschelde
Fixed loading package from resource folder, exporting textures to bun…
2017-09-13Style: Apply clang-format to @reduz's changesRémi Verschelde
[ci skip]
2017-09-13Expose more methods for UndoRedoGeequlim
2017-09-12Adds 3 and 4 digit html shortcuts to ColorDylan Enloe
Color::html now expands 3 and 4 digit hex values into 6 and 8 digit values by repeating each digit. This is to bring it in line with how html handles these values fixes #10997
2017-09-12Changed the doc class generation to individual files per class. It is also ↵Juan Linietsky
possible to save module files in module directories and the build system will recognize them.
2017-09-12Refactor core/set.hCradmon
2017-09-12Merge pull request #11106 from hpvb/documentation-fix-poolarraysRémi Verschelde
Correct the Pool*Array documentation
2017-09-12Merge pull request #11049 from scayze/astar_get_pointsRémi Verschelde
Add get_points() method to AStar
2017-09-12Merge pull request #11028 from mrawlingst/color-RGBA32Rémi Verschelde
Change Color.to_32() to Color.to_rgba32() and lowercase other functions
2017-09-12Merge pull request #10908 from hpvb/fix-unused-variablesRémi Verschelde
Fix unused variable warnings
2017-09-12Merge pull request #11026 from hpvb/fix-assign-in-ifRémi Verschelde
Remove assignment and declarations in if statements
2017-09-12Merge pull request #11057 from hpvb/fix-various-warningsRémi Verschelde
Fix various assorted warnings
2017-09-12Merge pull request #11044 from hpvb/fix-enum-as-boolRémi Verschelde
Fix using enum as bool value
2017-09-12Merge pull request #11040 from hpvb/fix-enum-compareRémi Verschelde
Fix warnings comparing enums of different types
2017-09-12Merge pull request #11041 from hpvb/fix-clang-format-errorRémi Verschelde
Fix serveral recent new clang-format errors [ci skip]
2017-09-10Add user data directory support for ProjectSettings::globalize_pathgeequlim
2017-09-09Correct the Pool*Array documentationHein-Pieter van Braam
2017-09-08Fix unused variable warningsHein-Pieter van Braam
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08Remove assignment and declarations in if statementsHein-Pieter van Braam
After discussing with @reduz and @akien-mga it was decided that we do not allow assignments or declarations in if statements. This PR removes the instances of this I could find by automated means.
2017-09-08Fix various assorted warningsHein-Pieter van Braam
Fix various warnings that don't have enough instances to merit individual commits. Also fixes a potential bug in audio_server.cpp.