summaryrefslogtreecommitdiffstats
path: root/editor/plugins/polygon_2d_editor_plugin.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-0/+2
|\
| * Merge pull request #97081 from aXu-AP/uv-editor-without-polygonThaddeus Crews2024-11-111-0/+2
| |\ | | | | | | | | | Open UV editor in point editing mode if no points
| | * Open uv editor in point editing mode if no pointsaXu-AP2024-09-171-0/+2
| | | | | | | | | | | | Open polygon editor in point editing mode if there's no polygon yet. Disable other modes until points are added.
* | | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-1/+1
|\| |
| * | Set clang-format `RemoveSemicolon` rule to `true`Adam Scott2024-10-251-1/+1
| |/ | | | | | | - Set clang-format `Standard` rule to `c++20`
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Improve UV editor zoom behavioraXu-AP2024-01-101-5/+4
| | | | | | | Scrolling focuses towards mouse like in canvas editor. Center view on opening. Adjust scroll area to include polygons larger than texture. Change zoom slider to EditorZoomWidget.
* Fix UV editor not showing polygon correctlyaXu-AP2023-12-051-1/+3
| | | | Fix polygon not showing correctly if UVs have been moved around. Show the actual contents of the polygon instead.
* Improve includes of EditorNode (and everything else)Yuri Sizov2023-04-071-0/+1
| | | | | | Also start organizing editor-specific GUI components into a dedicated folder, `editor/gui`. Also move `editor_file_server` next to the rest of debugger classes.
* Add gesture to ViewPanner and simplify a bit its APIGilles Roudière2023-01-231-3/+2
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Use forward-declarations in EditorPlugin where possibletrollodel2022-11-111-0/+6
|
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-2/+2
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Zero initialize all pointer class and struct membersRémi Verschelde2022-04-041-21/+21
| | | | | This prevents the pitfall of UB when checking if they have been assigned something valid by comparing to nullptr.
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-3/+3
| | | | | | | | | | | Removes some unnecessary includes from `editor_node.h`, and instead add those where they're used. Removes unnecessary `editor_node.h` includes in various editor classes. Renames `dynamicfont` to `dynamic_font` in a couple files. Misc cleanup while jumping through that rabbit hole.
* Remove most EditorNode constructor parameters and fieldstrollodel2022-02-141-2/+2
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-0/+3
|
* Minor tweaks and fixes to panningkobewi2022-01-231-1/+1
|
* Add ViewPanner to 2D editorkobewi2022-01-211-1/+1
|
* Add ViewPanner to more editorskobewi2022-01-141-1/+8
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Use real_t in editor pluginsAaron Franke2021-08-011-6/+6
| | | | Also use const more often and delete dead code in CanvasItemEditor
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Add override keywords.Marcel Admiraal2020-07-101-7/+7
|
* Remove ToolButton in favor of ButtonHugo Locurcio2020-06-191-5/+5
| | | | | | | | | | | ToolButton has no redeeming differences with Button; it's just a Button with the Flat property enabled by default. Removing it avoids some confusion when creating GUIs. Existing ToolButtons will be converted to Buttons, but the Flat property won't be enabled automatically. This closes https://github.com/godotengine/godot-proposals/issues/1081.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-2/+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.
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-5/+5
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* 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 redundant author doc commentsIAmActuallyCthulhu2019-08-121-3/+1
|
* Better and non-buggy Polygon2D editing disablingMichael Alexsander Silva Dias2019-02-161-0/+1
|
* Revert "Disallow polygon2D editing if internal vertices exists, as suggested ↵Michael Alexsander Silva Dias2019-02-161-1/+0
| | | | | | in #24853" This reverts commit 419fb45a3eea68516828fe4541a62f8641cf13ef.
* Disallow polygon2D editing if internal vertices exists, as suggested in #24853Juan Linietsky2019-02-131-0/+1
|
* Removed splits in Polygon editor, replace by internal vertices and polygon ↵Juan Linietsky2019-01-081-4/+10
| | | | support.
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* General enhancements to the Polygon2D, TextureRegion, and TileSet editorsMichael Alexsander Silva Dias2018-12-061-3/+7
|
* Skeletal deform workingJuan Linietsky2018-05-041-2/+2
|
* Skeleton for 2D WIPJuan Linietsky2018-05-031-1/+3
|
* WIP Polygon2D weight editingJuan Linietsky2018-05-021-2/+21
|
* Add a split editor to polygon 2D UV editor, moving an inch closer to adding ↵Juan Linietsky2018-02-251-2/+7
| | | | support for in the future
* Ability to edit Polygon2D shape from within the UV editor, this will ↵Juan Linietsky2018-02-221-1/+11
| | | | eventually make it possible to in the future.
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-1/+2
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Fixes snapping and replaces the _draw_canvas by forward_canvas_drawGilles Roudiere2017-10-181-0/+0
|
* Refactoring of polygon editors to a common code baseBernhard Liebl2017-10-031-47/+14
| | | | includes rebase and manual application 67a706fc1b9721f3f06eef8be7312f175e2041ce and 4537977d6dd2a76580d9ab611a18634efab55c74
* Remove dead ButtonGroup codeRémi Verschelde2017-09-061-1/+0
|
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* Updated function argument namesWilson E. Alvarez2017-08-121-2/+2
|
* Removal of InputEvent as built-in Variant type..Juan Linietsky2017-05-201-3/+3
| | | | this might cause bugs I haven't found yet..
* Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-081-0/+1
|