aboutsummaryrefslogtreecommitdiff
path: root/core/variant_op.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * Correctly halt on error in sprintf parsing (fixes #1393)Bil Bas (Spooner)2015-02-191-6/+10
| |
* | support for 2D shadow castersJuan Linietsky2015-03-021-0/+3
|/ | | | | | | | | | Added support for 2D shadow casters. *DANGER* Shaders in CanvasItem CHANGED, if you are using shader in a CanvasItem and pull this, you will lose them. Shaders now work through a 2D material system similar to 3D. If you don't want to lose the 2D shader code, save the shader as a .shd, then create a material in CanvasItem and re-assign the shader.
* Merge branch 'master' of https://github.com/okamstudio/godot into add_sprintfBil Bas (Spooner)2015-02-011-0/+24
|\
| * Add InputEvent::ACTION get/set support for variantsanikoyes2015-01-201-0/+24
| | | | | | | | Add action_press/action_release method bind
* | Added basic sprintf functionality (e.g. "fish %d %s" % [12, Vector2(1, 2)])Bil Bas (Spooner)2015-01-101-0/+14
|/
* -fix assignment to vector types in script using integer indices crash (#978)Juan Linietsky2015-01-021-2/+2
|
* -assignment of ord to string index made valid #1072Juan Linietsky2015-01-021-11/+21
|
* 3D Physics and Other StuffJuan Linietsky2014-09-021-0/+34
| | | | | | | | | | | | | | -=-=-=-=-=-=-=-=-=-=-=-=-= -New Vehicle (Based on Bullet's RaycastVehicle) - Vehiclebody/VehicleWheel. Demo will come soon, old vehicle (CarBody) will go away soon too. -A lot of fixes to the 3D physics engine -Added KinematicBody with demo -Fixed the space query API for 2D (demo will come soon). 3D is WIP. -Fixed long-standing bug with body_enter/body_exit for Area and Area2D -Performance variables now includes physics (active bodies, collision pairs and islands) -Ability to see what's inside of instanced scenes! -Fixed Blend Shapes (no bs+skeleton yet) -Added an Android JavaClassWrapper singleton for using Android native classes directly from GDScript. This is very Alpha!
* Polygon2DJuan Linietsky2014-07-071-1/+53
| | | | | | | | | -=-=-=-=- Another gift for those who make 2D games: -Edit polygons, concave or convex, color them, texture them and uv-map them -Corresponding editor -Can have a custom pivot, so they are compatible with bones and IK
* Light Baker!Juan Linietsky2014-06-111-1/+1
| | | | | | -=-=-=-=-=-= -Support for lightmap baker, have fun figuring out how it works before tutorial is published.
* Fix Variant vector2/vecotor3 multiply bugmarynate2014-03-291-2/+2
|
* -scripts are converted to bytecode on exportJuan Linietsky2014-02-251-1/+2
| | | | -fix bug in doc where touchscreen events were not documented
* -run script in editorJuan Linietsky2014-02-201-1/+8
| | | | | -add search docs dialog that returns places string was found -added flash
* GODOT IS OPEN SOURCEJuan Linietsky2014-02-091-0/+3394