aboutsummaryrefslogtreecommitdiff
path: root/core/variant_op.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* -Many fixes to VisualScript, fixed property names, etc.Juan Linietsky2017-06-301-9/+7
| | | | | | -Added ability to set/get a field in GetSet, as well as assignment ops -Added a Select node -Fixed update bugs related to variable list and exported properties, closes #9458
* Reworked translation systemJuan Linietsky2017-06-281-1/+1
| | | | | -Label and Button reload translation on the fly -Resources are loaded and reload depending on locale
* Reimplement for..in range() so that it always results in intsBojidar Marinov2017-06-221-20/+22
| | | | Fixes #8278, fixup of bfef8de1bc4f7a7b9617a7b181881129033a0b0e
* renamed all Rect3.pos to Rect3.positionalexholly2017-06-091-8/+8
|
* renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-9/+9
|
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-714/+0
| | | | this might cause bugs I haven't found yet..
* Fix two typos from previous commitRémi Verschelde2017-05-171-15/+16
| | | | Also cleanup comments on variant types.
* Removal of Image from Variant, converted to a Resource.Juan Linietsky2017-05-171-20/+8
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-1833/+1916
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Various fixes detected using PVS-Studio static analyzer.Thaer Razeq2017-02-281-2/+2
| | | | | | | - 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
* Revert "Make nan==nan true for GDScript"Juan Linietsky2017-02-141-51/+25
|
* Make nan==nan true for GDScriptHein-Pieter van Braam2017-02-141-25/+51
| | | | | | | | | | | | | After discussing this with Reduz this seemed like the best way to fix #7354. This will make composite values that contain NaN in the same places as well as the same other values compare as the same. Additionally non-composite values now also compare equal if they are both NaN. This breaks IEEE specifications but this is probably what most users expect. There is a GDScript function check for NaN if the user needs this information. This fixes #7354 and probably also fixes #6947
* Style: Cleanups, added headers, renamed filesRémi Verschelde2017-01-161-0/+2
| | | | | | | | | 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).
* Made InputEvent use floating point coordinates.Juan Linietsky2017-01-121-6/+6
|
* More efficient iteration syntax, and range() is converted behind the scenes ↵Juan Linietsky2017-01-111-0/+89
| | | | to it.
* Both Array and Dictionary are always in shared mode (removed copy on write).Juan Linietsky2017-01-111-3/+3
|
* Type renames:Juan Linietsky2017-01-111-189/+189
| | | | | | | | | | | | Matrix32 -> Transform2D Matrix3 -> Basis AABB -> Rect3 RawArray -> PoolByteArray IntArray -> PoolIntArray FloatArray -> PoolFloatArray Vector2Array -> PoolVector2Array Vector3Array -> PoolVector3Array ColorArray -> PoolColorArray
* Variant INT and REAL are now 64 bits (other types remain at 32)Juan Linietsky2017-01-081-6/+6
|
* renamed joystick to joypad everywhere around source code!Juan Linietsky2017-01-081-6/+6
|
* Memory pool vectors (DVector) have been enormously simplified in code, and ↵Juan Linietsky2017-01-071-56/+56
| | | | renamed to PoolVector
* Welcome in 2017, dear changelog reader!Rémi Verschelde2017-01-011-1/+1
| | | | | | | | That year should bring the long-awaited OpenGL ES 3.0 compatible renderer with state-of-the-art rendering techniques tuned to work as low as middle end handheld devices - without compromising with the possibilities given for higher end desktop games of course. Great times ahead for the Godot community and the gamers that will play our games!
* Added small modification on parser for '+'Henrique L. Alves2016-10-221-2/+52
|
* fix string iteratorcaryoscelus2016-08-261-1/+1
| | | | | | | Since strings are null-terminated, size() returns incorrect length, so use length() instead. fixes #6287
* Fix warnings in core/variant_op.cppJohan Manuel2016-07-231-2/+8
| | | | | Adds default cases in switches where needed, and replaces '0;' with ';;' in macro expansions (as suggested by @vnen in #5587).
* Add support to String type in gdscript iteration. #5188Samuel Grigolato2016-06-261-0/+24
|
* Expose missing Quaternion operators.Andreas Haas2016-06-211-3/+12
| | | | | | Scripts can now evaluate the following cases: - (quat * real) and (quat / real) - (quat + quat) and (quat - quat)
* Add support for Python-like negative indexingDennis Brakhane2016-06-051-5/+33
| | | | | | | | | | | | | | | Negative indexing is a useful feature in Python, especially when combined with array slicing. Array slicing will hopefully be implemented later, but negative indexing is useful in its own right. A negative index is indexing from the end of an array, "array[-1] == array[array.size()-1]", using a negative index larger/smaller than the length of the array is still an error. While primarily useful for arrays and strings, support is also added to "array like" structures like Vector3 and Color. This is done just to be consistent; vector3[2] is much clearer than vector3[-1], but disallowing it while allowing it for an array with 3 elements seems confusing.
* Move repetitive code to macrosDennis Brakhane2016-06-051-243/+38
| | | | | | | | In preparation for the following "allow negative indexing" commit, replace the repetitive array "set index" and "get index" code with macros. no functional changes were made, the resulting machine code is unchanged.
* Make Color.{rgba}8 return int instead floatAndreas Haas2016-05-311-5/+5
| | | | | According to the class doc, these should be int. Also fixed a little bug: the setter for 'r8' changed the green value
* Removing round from int interpolationpunto-2016-05-171-1/+1
| | | This might break some animations that use int tracks in continuous mode, but it should provide a more uniform interpolation for things like sprite frames.
* remove trailing whitespaceHubert Jarosz2016-03-091-3/+3
|
* Variant::blend: add Quat, fix Vector3.Josh Grams2016-03-081-1/+7
|
* AnimationTreePlayer: blend value tracks (closes #2299)Josh Grams2016-03-011-0/+53
| | | | | | Variant: - zero() sets a Variant to the appropriate type of zero value - blend() blends part of one Variant on top of another.
* fixed string operator[], which was broken. Closes #2202Juan Linietsky2016-01-021-2/+2
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* -Added Color8(r8,g8,b8,a8) function as well as .r8,.g8,.b8,.a8 members to ↵Juan Linietsky2015-12-311-0/+32
| | | | Color, to deal with colors in the 0-255 range. Closes #2345
* Fix "in" operator, make it use evaluate() instead of operator==Franklin Sobrinho2015-12-111-1/+1
|
* Fix return type of Matrix32 member varsRémi Verschelde2015-11-231-3/+3
| | | | Thanks to @bojidar-bg for localising the issue.
* Merge pull request #2749 from TheHX/fix_string_content_testJuan Linietsky2015-11-181-1/+1
|\ | | | | Fix String content test
| * Fix String content testFranklin Sobrinho2015-11-061-1/+1
| |
* | Implement Quat multiply operator, and xform methodFranklin Sobrinho2015-11-111-1/+15
|/
* -Integers and Float should interpolate on animation, maybe fixes #1891, ↵Juan Linietsky2015-05-161-1/+9
| | | | please test
* -Fixes from source code analyzizer, closes #1768Juan Linietsky2015-05-011-1/+1
|
* Sort xml files, so order is constantest312015-05-011-13/+38
| | | | Makes xml format work better with version control systems.
* Fixed bug in array comparison, fixes #1712Juan Linietsky2015-04-261-1/+2
|
* Updated copyright year in all headersJuan Linietsky2015-04-181-1/+1
|
* -Concatenating arrays keeps the shared property if any of the arrays is ↵Juan Linietsky2015-04-071-1/+1
| | | | shared. Fixes #1646
* Merge pull request #1396 from Spooner/fix_sprintf_errorsJuan Linietsky2015-03-221-6/+10
|\ | | | | Fix sprintf errors