summaryrefslogtreecommitdiffstats
path: root/editor/plugins/path_3d_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-19/+100
|\
| * Merge pull request #86195 from GreenCrowDev/curve3d_closeThaddeus Crews2024-11-181-19/+100
| |\ | | | | | | | | | Add `closed` property to `Curve3D`
| | * Implement closed path for Curve3dmatricola7872024-11-161-19/+100
| | |
* | | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-1/+1
|\| |
| * | Core: Integrate `Ref::instantiate` where possibleThaddeus Crews2024-11-101-1/+1
| |/
* | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-8/+8
|\|
| * Rename internal Button icon to button_icon to match exposed methodsAaron Franke2024-10-291-8/+8
| |
* | 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>
* [Editor] Expose more editor settings to documentationA Thousand Ships2024-09-121-2/+5
| | | | Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
* Cleanup Path3D editorkobewi2024-09-071-50/+23
|
* Add Create Curve button to Path2D editorkobewi2024-09-061-9/+46
|
* [Scene] Add `SceneStringNames::confirmed`A Thousand Ships2024-06-191-1/+1
|
* [Scene] Add `SceneStringNames::id_pressed`A Thousand Ships2024-05-301-1/+1
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-12/+12
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-4/+4
|
* Merge pull request #90966 from Calinou/debug-draw-use-runtime-colorsRémi Verschelde2024-05-071-1/+1
|\ | | | | | | Use same colors for editor and running project for collision/path debug
| * Use same colors for editor and running project for collision/path debugHugo Locurcio2024-04-211-1/+1
| | | | | | | | | | | | | | | | This harmonizes the appearance of collision shapes and paths between the editor and running project, in both 2D and 3D. This means that in 3D, paths are now green and shapes are now cyan instead of light blue.
* | [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-2/+2
| | | | | | | | Convenience for a number of cases operating on single values
* | Fix Path3D tilt gizmo raycasting against local planekleonc2024-04-241-9/+5
|/
* Merge pull request #89933 from jsjtxietian/path3d-removeRémi Verschelde2024-04-041-1/+58
|\ | | | | | | Support "clear points" function in Path3D topmenu bar
| * Support “clear points” function in Path3D editorjsjtxietian2024-03-271-1/+58
| |
* | Merge pull request #89847 from GreenCrowDev/missing-bezier-handlesRémi Verschelde2024-04-041-51/+87
|\ \ | | | | | | | | | UX and stability improvements for `Path3D` node
| * | UX and stability improvements for Path3D nodematricola7872024-03-251-51/+87
| |/
* / Fix path3d's pick works incorrectly when viewport is in half resolutionjsjtxietian2024-03-261-12/+23
|/
* Use subgizmos instead of handles for Path3D curve pointspohy2024-02-221-43/+166
|
* Merge pull request #83741 from BlueCube3310/path-3d-plugin-optimizeYuri Sizov2023-12-081-8/+20
|\ | | | | | | Optimize Path3DGizmo Mesh Generation
| * Optimize Path3DGizmo mesh generationBlueCube33102023-10-211-8/+20
| |
* | Fix theme application in various editor dialogsYuri Sizov2023-12-041-0/+3
|/ | | | | | 99% of the time we shouldn't rely on the signal, we should use the notification instead. I left some comments in places where I couldn't quickly improve the code.
* Improve Path3D gizmo usabilityYaohua Xiong2023-10-031-15/+28
| | | | Allow change tilt gizmo color and size in editor setting
* Merge pull request #81939 from YuriSizov/gui-flat-and-depressedRémi Verschelde2023-09-251-5/+7
|\ | | | | | | Replace flat buttons with flat-styled buttons with a visible pressed state
| * Replace flat buttons with flat-styled buttons with a visible pressed stateYuri Sizov2023-09-191-5/+7
| |
* | Replace Ctrl in editor shortcuts with Cmd or Ctrl depending on platformajreckof2023-09-191-1/+1
|/
* Merge pull request #81516 from YuriSizov/editor-theme-access-the-successYuri Sizov2023-09-151-7/+8
|\ | | | | | | Fix accessing editor theme items throughout the UI
| * Fix accessing editor theme items throughout the UIYuri Sizov2023-09-151-7/+8
| | | | | | | | This also exposes `EditorInterface::get_editor_theme`.
* | Improve the looks of 2D/3D viewport contextual toolbarsYuri Sizov2023-09-131-29/+11
|/
* Add EditorStringNames singletonkobewi2023-09-031-7/+7
|
* Add handles to control Curve3D tiltDaniel Roberts2023-08-121-134/+251
|
* Add move control points button to PAth3D Editorajreckof2023-06-051-7/+23
|
* Fix Pathfollow directionSilc Renew2023-05-241-2/+2
| | | | Co-authored-by: aaronfranke <arnfranke@yahoo.com>
* Add EditorUndoRedoManager singletonkobewi2023-01-161-6/+6
|
* 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".
* Handle corner cases for curve bakingYaohua Xiong2022-12-141-5/+2
| | | | | | When control point and point have equal position, the derivative is 0 vector, which cause error message in Basis::look_at(). This commit handles this case.
* draw fish bones for Path2D and Path3DYaohua Xiong2022-12-051-19/+44
| | | | These fish bones are add to indicate the direction and local transforms alone the path.
* Use forward-declarations in big editor classestrollodel2022-11-291-0/+1
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-9/+9
| | | | change warnings=all to use /W4.
* Rename remaining "Spatial" in Plugins to "Node3D"Micky2022-10-041-2/+2
| | | | | | | | | | | | For EditorNode3DGizmo: - `get_spatial_node` -> `get_node_3d` - `set_spatial_node` -> `set_node_3d` For EditorPlugin: - `add_spatial_gizmo_plugin` -> `add_node_3d_gizmo_plugin` - `remove_spatial_gizmo_plugin` -> `remove_node_3d_gizmo_plugin` Also renames some internal methods for consistency (`forward_3d_draw_over_viewport` & `forward_3d_force_draw_over_viewport` ...). Basically, Spatial has been completely eradicated.
* Fix key mapping changes when moving from macOS to other platformbruvzg2022-09-071-1/+1
| | | | | Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Merge pull request #64885 from Mickeon/rename-tooltip-hintRémi Verschelde2022-08-281-4/+4
|\ | | | | Rename `hint_tooltip` to `tooltip_text` & setter getter