summaryrefslogtreecommitdiffstats
path: root/scene/2d/path_2d.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-11/+21
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-38/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Merge pull request #36035 from Xrayez/path2d-fix-self-modulateRémi Verschelde2020-04-271-2/+1
|\ | | | | Do not override Path2D.self_modulate property
| * Do not override Path2D.self_modulate propertyAndrii Doroshenko (Xrayez)2020-02-091-2/+1
| | | | | | | | | | | | Self-modulation was forcefully used for the curve drawing which can interfere with scripted drawing. The curve color is specified by the `draw_line()` method instead.
* | Handle huge offset values in Path2D and Path3D set_offsetMickeMakaron2020-04-131-7/+5
| |
* | Replace NULL with nullptrlupoDharkael2020-04-021-2/+2
| |
* | Signals: Port connect calls to use callable_mpRémi Verschelde2020-02-281-3/+2
| | | | | | | | | | | | | | | | | | Remove now unnecessary bindings of signal callbacks in the public API. There might be some false positives that need rebinding if they were meant to be public. No regular expressions were harmed in the making of this commit. (Nah, just kidding.)
* | Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky2020-02-251-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
* | Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky2020-02-201-2/+2
| | | | | | | | objects and made them default.
* | Bugfixes and ability to better specify filter and repeat modes everywhere.Juan Linietsky2020-02-111-1/+1
|/ | | | Removes antialiased flag for draw_* methods.
* Updates Path2D in debugging if navigation is visibleHaoyu Qiu2020-02-031-2/+8
|
* Allow greater values in unit_offsetTomasz Chabora2020-01-241-3/+3
|
* Don't compile editor-only function when tools=noGilles Roudière2020-01-091-0/+2
|
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* Remove unnecessary bounded_offset from PathFollow2DTomasz Chabora2019-11-301-9/+3
|
* Improve the appearance of 2D path editorsHugo Locurcio2019-08-181-1/+1
| | | | | | | - Add new handle icons for path/polygon editors - Add smooth path point icons and curve tangent icons - Use a gray color for tangent lines in the Path2D and Path editors - Use antialiasing for Path2D lines
* Fix some issue with TileMap's and other nodes' boundariesBojidar Marinov2019-07-081-1/+1
| | | | | Fixes #30348 Addresses a small part of #30012
* Don't allow PathFollow offset outside boundsTomasz Chabora2019-05-251-4/+20
|
* Replace a few #if/#elif with #ifdef and "#elif defined"Ignacio Etcheverry2019-04-051-1/+1
|
* Do not crash on empty path, closes #23701Juan Linietsky2019-02-231-0/+3
|
* Allow offset and unit_offset to be set higher than one loopTimo Schwarzer2019-01-031-2/+2
| | | | Fixes #24745
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* #24131: fix for PathFollow offset slider overlapping with the inspectorGleb Mineev2018-12-041-1/+1
|
* Fix crash adding point to a Curve2D from the editorlupoDharkael2018-10-301-0/+4
| | | | | Adding point to a Path2D with null Curve2D from the canvas was causing a crash after trying to use a null object.
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
| | | | | | This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
* Allow editing of some unbound properties when hinted (or no range hinted)Juan Linietsky2018-05-161-1/+1
|
* Ability to change path color with self modulatevolzhs2018-04-171-1/+2
| | | | Fix #18164
* Remove the selection rect for nodes that do not require itGilles Roudiere2018-04-031-0/+4
|
* defend Path2D against a null curveTodd Ross2018-01-221-1/+1
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-59/+21
| | | | | | | Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Merge pull request #15093 from poke1024/canvas-editor-selectRémi Verschelde2018-01-031-1/+53
|\ | | | | More exact picking for canvas editor
| * More exact picking for canvas editorBernhard Liebl2017-12-271-1/+53
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Reworked PathFollow2D behaviour, based on such in version 2.1.Ibrahn Sahir2017-12-061-19/+56
| | | | | | | | | When rotation is enabled, the follower's rotation will be set to that of the tangent to the path at it's current offset. For closed looping paths the lookahead will now wrap around at the end of the path. fixes #13434
* Fix PathFollow2D motion.Ferenc Arn2017-11-301-11/+9
| | | | Fixes #13361.
* Use parallel transport in PathFollow2D.Ferenc Arn2017-11-191-25/+21
| | | | Fixes #12995.
* Rename pos to position in user facing methods and variablesletheed2017-09-201-1/+1
| | | | | | | | | | | Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
* Remove assignment and declarations in if statementsHein-Pieter van Braam2017-09-081-1/+2
| | | | | | 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.
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Convert Object::cast_to() to the static versionHein-Pieter van Braam2017-08-241-8/+3
| | | | | | | | | | | | Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
* Removes editor_hint from SceneTreeIgnacio Etcheverry2017-08-191-2/+4
|
* Fixes method definitions with extra number of argumentsIgnacio Etcheverry2017-08-101-1/+1
|
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-2/+2
|
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-051-127/+103
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-131-17/+17
| | | | | | 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-131-1/+1
| | | | This saves typing and is a step towards fixing #56
* New API for visibility in both CanvasItem and SpatialJuan Linietsky2017-01-131-1/+1
| | | | | | visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
* -Conversion of most properties to a simpler syntax, easier to use by scriptJuan Linietsky2017-01-041-2/+2
| | | | | | -Modified help to display properties GDScript can still not make use of them, though.