aboutsummaryrefslogtreecommitdiff
path: root/scene/2d/sprite.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #16122 from ibrahn/sprite-region-with-framesJuan Linietsky2018-05-071-17/+17
|\ | | | | Allow use of frames in sprites with texture region enabled.
| * Allow use of frames in sprites with texture region enabled.Ibrahn Sahir2018-04-081-17/+17
| | | | | | | | | | If texture region is enabled on a sprite, Hframes and Vframes will now divide the selected region into frames.
* | Fix error spam with Sprite has compressed texturevolzhs2018-04-161-0/+3
| | | | | | | | Fix #18177
* | Fix index out of size error on Imagevolzhs2018-04-161-0/+21
| | | | | | | | Fix #18229
* | Remove the selection rect for nodes that do not require itGilles Roudiere2018-04-031-0/+8
|/
* Update Sprite when Texture changesShyRed2018-03-101-0/+22
| | | | Make Sprite monitor its Texture for changes and trigger an update when the sprite changes.
* Merge pull request #17341 from poke1024/fix16461Rémi Verschelde2018-03-081-1/+7
|\ | | | | Fix unselectable flipped sprites (fixes 16461)
| * Fix unselectable flipped sprites (fixes 16461)poke10242018-03-071-1/+7
| |
* | Merge pull request #17189 from CodeAndWeb/masterRémi Verschelde2018-03-081-1/+21
|\ \ | |/ |/| Fixes Selection of Sprites using AtlasTexture
| * Fix selection of Sprites using AtlasTexture in the editor.Andreas Loew2018-03-021-1/+21
| | | | | | | | Fixes #16261.
* | Fix uninitialized data in Sprite::_get_rects()Bernhard Liebl2018-03-041-2/+2
|/
* Merge pull request #16756 from willnationsdev/shifted-rect-spriteRémi Verschelde2018-02-211-1/+3
|\ | | | | Simplify detection of Sprite clicks
| * Expose Sprite._edit_get_rect for click rect accessWill Nations2018-02-191-1/+3
| |
* | 2D editor GUI input rework. Changes are:Gilles Roudiere2018-02-161-5/+15
|/ | | | | | | | | | - The input handling is done into several distinct functions, and the code is more consistent. - The actions' history is more precise ("Edited CanvasItem" is now "Rotated CanvasItem","Moved CanvasItem",etc...) - Fixed a little bug about input key events not forwarded correctly to plugins - IK is followed by default when you move a bone node, the alt-key allow you to move it normally
* 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-32/+61
|\ | | | | More exact picking for canvas editor
| * More exact picking for canvas editorBernhard Liebl2017-12-271-32/+61
| |
* | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere2017-11-191-226/+5
|
* 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-4/+4
| | | | | | | | | | | | 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 type information from method bindsIgnacio Etcheverry2017-08-101-4/+4
|
* Properly update frame range after modifying the vframe/hframes, closes #7624Juan Linietsky2017-08-051-2/+2
|
* Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-SyncRémi Verschelde2017-08-011-0/+1
|\ | | | | Texture region now updates when changing an Atlas region rect
| * Texture region now updates when changing an AtlasRobert Hernandez2017-06-291-0/+1
| | | | | | | | | | | | | | | | | | - Removed atlas_changed signal for AtlasTexture - Changes are now handled by _notify_change - Removed unneccesary signal connections - Texture preview now updates in real-time Fixed TextureRegionEditor constantly regenerating
* | Sprite: fix disconnect nonexistent signalPoommetee Ketson2017-07-231-13/+0
|/
* Usability improvements for folding. Unfortunately SpatialMaterial broke ↵Juan Linietsky2017-06-251-0/+2
| | | | compatibility.
* Texture rect_region drawing now clamps UV to avoid bleeding. This avoids ↵Juan Linietsky2017-06-181-2/+20
| | | | scenarios like single-texture tilemap tiles leaking pixels to the next tile when filter is enabled on it.
* Add normalmap support for drawing in all low level primitives. Only added ↵Juan Linietsky2017-06-171-1/+18
| | | | support in Sprite so far.
* renamed all Rect2.pos to Rect2.positionalexholly2017-06-041-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-102/+88
| | | | | | | | | | | | | | | | | | | | | | | | 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-28/+28
| | | | | | 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-14/+14
| | | | This saves typing and is a step towards fixing #56
* Style: Fix whole-line commented codeRémi Verschelde2017-01-141-4/+8
| | | | | 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.
* Created new Engine singleton, and moved engine related OS functions to it.Juan Linietsky2017-01-131-1/+1
|
* removed unnecesary modulate funtions, which were superseded by self_modulateJuan Linietsky2017-01-081-18/+1
|
* ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to ↵Juan Linietsky2017-01-021-30/+30
| | | | | | | | Variant. All usages of "type" to refer to classes were renamed to "class" ClassDB has been exposed to GDScript. OBJ_TYPE() macro is now GDCLASS()
* Merge remote-tracking branch 'origin/gles3' into gles3-on-masterRémi Verschelde2017-01-021-1/+2
|\ | | | | | | | | Various merge conflicts have been fixed manually and some mistakes might have been made - time will tell :)
| * Begining of GLES3 renderer:Juan Linietsky2016-10-031-1/+2
| | | | | | | | | | | | | | | | -Most 2D drawing is implemented -Missing shaders -Missing all 3D -Editor needs to be set on update always to be used, otherwise it does not refresh -Large parts of editor not working
* | 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!
* | Sprite: Fix inspector not showing changes on "frame" property.Andreas Haas2016-10-111-0/+1
|/ | | | Fixes #6562
* Fix the +1 button to insert keyframes in Sprite and Sprite3D, closes #5422Juan Linietsky2016-07-061-0/+11
|
* Modify margins with mouse inputMarianoGNU2016-06-201-0/+2
|
* i18n: Proofreading of all stringsRémi Verschelde2016-05-211-1/+1
| | | | | | Done to ensure that no important identifiers are translatable, to fix compound strings using the new vformat() function, and some general English proofreading here and there.
* -Added configuration warning system for nodesJuan Linietsky2016-05-171-0/+19
| | | | | -Added a new "add" and "instance" buttons for scene tree -Added a vformat() function to ease translation work
* Fix Sprite doesn't updating region_rect value in certain conditionsFranklin Sobrinho2016-03-051-5/+7
|
* Update copyright to 2016 in headersGeorge Marques2016-01-011-1/+1
|
* -A little More control about pixel snapping in 2DJuan Linietsky2015-10-131-0/+7
|
* Add SpriteRegionEditor and update Polygon2DUVEditorMarianoGNU2015-09-281-0/+1
| | | | Both with snap and grid support