aboutsummaryrefslogtreecommitdiff
path: root/modules (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-0527-4/+744
|
* Refactoring: rename tools/editor/ to editor/Rémi Verschelde2017-03-055-14/+14
| | | | | | The other subfolders of tools/ had already been moved to either editor/, misc/ or thirdparty/, so the hiding the editor code that deep was no longer meaningful.
* Added missing FIXMEs in PR #7878Ferenc Arn2017-03-021-1/+1
|
* Merge pull request #7878 from RebelliousX/elseRémi Verschelde2017-02-283-3/+3
|\ | | | | Bunch of missing `else` statements and general logic
| * Various fixes detected using PVS-Studio static analyzer.Thaer Razeq2017-02-283-3/+3
| | | | | | | | | | | | | | - Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
* | Inf and NaN support added to GDScript.Saracen2017-02-288-2/+50
|/
* Merge pull request #7851 from shlomif/fix-some-compilation-warningsRémi Verschelde2017-02-262-5/+6
|\ | | | | Get rid of some compilation warnings.
| * Fix some compilation warnings.Shlomi Fish2017-02-212-5/+6
| | | | | | | | | | | | Redone the commit based on the input in https://github.com/godotengine/godot/pull/7851 . Not all warnings were fixed but it's a start.
* | Merge pull request #7827 from volzhs/libwebp-0.6.0Rémi Verschelde2017-02-261-89/+99
|\ \ | | | | | | Update libwebp to 0.6.0
| * | Update libwebp to 0.6.0volzhs2017-02-171-89/+99
| | |
* | | Merge pull request #7809 from hpvb/fix-6798Rémi Verschelde2017-02-261-4/+25
|\ \ \ | | | | | | | | Allow preload to accept a const string.
| * | | Allow preload to accept a const string.Hein-Pieter van Braam2017-02-161-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preload() parsing this code will lookup the identifier in the local constant database. If the identifier corresponds to a string constant it is used as the path for preload(). Currently this does not work for global constants, only constants declared in the same class as the preload is happening. We can implement a full fix too. Maybe we can use this PR to discuss the possibilities. This (partially) fixes #6798
* | | | -renamed globals.h to global_config.cpp (this seems to have caused a few ↵Juan Linietsky2017-02-219-9/+9
| |_|/ |/| | | | | | | | | | | | | | modified files) -.pck and .zip exporting redone, seems to be working..
* | | Correct hash behavior for floating point numbersHein-Pieter van Braam2017-02-162-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes HashMap where a key or part of a key is a floating point number. To fix this the following has been done: * HashMap now takes an extra template argument Comparator. This class gets used to compare keys. The default Comperator now works correctly for common types and floating point numbets. * Variant implements ::hash_compare() now. This function implements nan-safe comparison for all types with components that contain floating point numbers. * Variant now has a VariantComparator which uses Variant::hash_compare() safely compare floating point components of variant's types. * The hash functions for floating point numbers will now normalize NaN values so that all floating point numbers that are NaN hash to the same value. C++ module writers that want to use HashMap internally in their modules can now also safeguard against this crash by defining their on Comperator class that safely compares their types. GDScript users, or writers of modules that don't use HashMap internally in their modules don't need to do anything. This fixes #7354 and fixes #6947.
* | Many fixes to make exported scenes work better, still buggy.Juan Linietsky2017-02-155-579/+82
| |
* | -begin of export work, not done yetJuan Linietsky2017-02-151-0/+2
|/ | | | -fixes to make scenes exported from godot 2.x work
* Remove bounds check when resuming from yield.Hein-Pieter van Braam2017-02-131-1/+1
| | | | | | | | | | | | | | The code would get a pointer to the beginning of the call_args by using operator[] at the stack Vector. This does bound checking. When there are no call_args this bound check fails and the error mentioned in #7796 gets triggered. This bound check is actually not necessary as call_args just gets set to NULL and never dereferenced. This new code will just unconditionally set the pointer to the place where the call_args are if there are any. There is no NULL check for call_args anywhere so this is safe. Fixes #7796
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-1313-265/+265
| | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-138-75/+75
| | | | This saves typing and is a step towards fixing #56
* Merge pull request #7723 from lonesurvivor/gdscript-range-fixRémi Verschelde2017-02-121-4/+3
|\ | | | | Fix parsing bug which causes range(variable) to crash the engine
| * Fix parsing bug which causes range(variable) to crash the enginelonesurvivor2017-02-041-4/+3
| | | | | | | | | | | | | | problem was a segmentation fault caused by trying to access Vector constants[0] which isn't there if op->arguments.size() is not bigger than one. - the changed OR condition didn't make sense (always true), should be AND - changes the "constant" variable to be false per default and gets set to true when there is actually something pushed to "constants"
* | Several bugfixes, improving the import workflowJuan Linietsky2017-02-062-12/+12
|/
* Changed OGG Vorbis type to be imported, so it's possible to specify loopJuan Linietsky2017-02-035-76/+184
|
* Removed import/export system, will start new one from scratch.Juan Linietsky2017-01-251-3/+4
|
* Merge pull request #7583 from karroffel/wildcardRémi Verschelde2017-01-233-7/+9
|\ | | | | made _ a special token in GDScript
| * made _ a special token in GDScriptkarroffel2017-01-203-7/+9
| |
* | WIP new AudioServer, with buses, effects, etc.Juan Linietsky2017-01-216-0/+411
| |
* | Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn2017-01-162-63/+63
|/ | | | | | than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
* Merge pull request #7532 from tagcup/pcg_prngRémi Verschelde2017-01-162-4/+4
|\ | | | | Replace the existing PRNG (Xorshift31) with (minimal) PCG-32.
| * Replace the existing PRNG (Xorshift31) with (minimal) PCG (XSH-RR variant ↵Ferenc Arn2017-01-152-4/+4
| | | | | | | | | | | | with 32-bit output, 64-bit state). PCG is better than many alternatives by many metrics (see www.pcg-random.org) including statistical quality with good speed.
* | Style: Various fixes to play nice with clang-formatRémi Verschelde2017-01-163-27/+33
| |
* | Style: Fix statements ending with ';;'Rémi Verschelde2017-01-169-17/+17
| |
* | Style: No break before list braceRémi Verschelde2017-01-161-2/+1
| | | | | | | | | | | | | | clang-format does not handle that well *at all*. For the reference, found the relevant pieces of code with: `ag "=[ "$'\t'"]?"$'\n'"[ "$'\t'"]?{" --ignore=thirdparty`
* | Style: Cleanups, added headers, renamed filesRémi Verschelde2017-01-164-4/+4
| | | | | | | | | | | | | | | | | | Made sure files in core/ and tools/ have a proper Godot license header when written by us. Also renamed aabb.{cpp,h} and object_type_db.{cpp,h} to rect3.{cpp,h} and class_db.{cpp,h} respectively. Also added a proper header to core/io/base64.{c,h} after clarifying the licensing with the original author (public domain).
* | Oops! Audio engine has vanished :DJuan Linietsky2017-01-1554-12916/+10
| |
* | Style: Cosmetic fixes to play nice with clang-formatRémi Verschelde2017-01-153-78/+107
|/
* Compile error when duplicate key in dictionery literal #7034James Mintram2017-01-141-0/+11
|
* Merge pull request #6845 from karroffel/masterJuan Linietsky2017-01-146-1/+696
|\ | | | | Adds pattern matching to GDScript
| * pattern matcher: Implemented backendKarroffel2017-01-114-286/+372
| | | | | | | | changed comments
| * pattern matcher: Implemented transformationsKarroffel2017-01-113-35/+393
| |
| * pattern matching: implemented parserKarroffel2017-01-114-1/+252
| |
* | Merge pull request #4918 from jjay/f/error_on_redefineJuan Linietsky2017-01-141-0/+25
|\ \ | | | | | | Redefine var results in an error
| * | [GDScript] Redefine var results in an errorYakov Borevich2016-05-301-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | Error rised if redefine - function argument - for-loop argument - local-scope var Affects #3730
* | | removed duplicated functions in class hierarchy that were bound more than onceJuan Linietsky2017-01-142-10/+10
| | | | | | | | | | | | added a check to detect this case in the future
* | | Style: Fix whole-line commented codeRémi Verschelde2017-01-1428-87/+113
| | | | | | | | | | | | | | | They do not play well with clang-format which aligns the `//` part with the rest of the code block, thus producing badly indented commented code.
* | | rename String.extension() -> String.get_extension() / String.basename() -> ↵Juan Linietsky2017-01-1412-16/+16
| | | | | | | | | | | | String.get_basename()
* | | rename Input.get_mouse_speed() to Input.get_last_mouse_speed()Juan Linietsky2017-01-131-2/+2
| | |
* | | Must now register with set_transform_notify() to get ↵Juan Linietsky2017-01-121-0/+1
| | | | | | | | | | | | NOTIFICATION_TRANSFORM_CHANGED
* | | some class renamesJuan Linietsky2017-01-122-7/+7
| | | | | | | | | | | | | | | | | | TextureFrame -> TextureRect Patch9Frame -> NinePatchRect ColorFrame -> ColorRect
* | | Implicit inheritance now defaults to Resource, will error for node scripts ↵Juan Linietsky2017-01-122-1/+8
| | | | | | | | | | | | if extends not used.