summaryrefslogtreecommitdiffstats
path: root/editor/editor_data.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup unused engine code v2kobewi2023-01-191-18/+0
|
* Move global script class cache to separate filekobewi2023-01-161-14/+23
|
* Add EditorUndoRedoManager singletonkobewi2023-01-161-7/+7
|
* 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".
* Fix resource picker regressionrune-scape2022-12-181-2/+3
|
* GDScript: Avoid using `get_global_class_native_base`rune-scape2022-11-271-5/+5
|
* Remove more instances of 'instance' being used as a verbVolTer2022-11-161-1/+1
|
* Unify usage of undo_redo in editorkobewi2022-11-021-2/+0
|
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-2/+2
|
* Merge pull request #58617 from KoBeWi/custom_somethingRémi Verschelde2022-09-071-0/+26
|\ | | | | | | Improve handling of custom types
| * Improve handling of custom typeskobewi2022-09-051-0/+26
| |
* | Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky2022-09-061-1/+1
|/ | | | For consistency. Every other exposed `one_shot` is spaced out like this.
* Replace Array return types with TypedArraykobewi2022-08-221-2/+2
|
* Add per-scene UndoRedokobewi2022-08-221-25/+53
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-1/+1
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Fix heap-use-after-free when closing a scene with its builtin script openHaoyu Qiu2022-07-061-0/+1
|
* Add a new HashSet templatereduz2022-05-201-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-9/+9
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Add a new HashMap implementationreduz2022-05-121-6/+3
| | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Fix some issues found by cppcheck.bruvzg2022-04-061-1/+1
|
* Cleanup EditorNode and EditorDataHendrik Brucker2022-03-301-142/+101
| | | | Co-authored-by: Eric M <itsjusteza@gmail.com>
* Initialize bools in the headers in editorAaron Franke2022-03-121-3/+0
|
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-5/+0
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-2/+2
| | | | | | | | | | | 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.
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-2/+2
|
* Merge pull request #43015 from Xrayez/refactor-auto-instapropRémi Verschelde2022-02-081-0/+15
|\ | | | | Refactor auto-instantiation of `Object` properties in editor
| * Refactor auto-instantiation of `Object` properties in editorAndrii Doroshenko (Xrayez)2021-12-281-0/+15
| | | | | | | | | | | | | | | | Auto-instantiation is used by the create dialog, but should also be used by the editor inspector. This refactors object properties auto-instantiation into a dedicated method to be reused throughout editor (and possibly scripting).
* | Use ScriptServer::get_global_class_base instead of script_class_get_base in ↵Jason Knight2022-02-071-12/+3
| | | | | | | | script_class_is_parent.
* | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-9/+9
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix a crash in editor's script parent class checkYuri Sizov2021-11-301-1/+6
|
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-231-4/+4
|
* Use range iterators for `Map`Lightning_A2021-09-301-7/+7
|
* Rename Node's `filename` property to `scene_file_path` for clarityHugo Locurcio2021-09-301-16/+16
|
* Close built-in script from any scenekobewi2021-09-071-0/+4
|
* Implement properties arrays in the Inspector.Gilles Roudière2021-09-071-0/+15
|
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-6/+6
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-19/+19
|
* Optimize StringName usagereduz2021-07-181-4/+4
| | | | | | | | | | | * Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-4/+4
|
* Rename Reference to RefCountedPedro J. Estébanez2021-06-111-1/+1
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-2/+2
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Provide a way to hook into Inspectors UndoRedo.Gilles Roudière2021-05-041-0/+12
|
* Display scene file extensions in the editor only if there's ambiguityHugo Locurcio2021-03-201-6/+22
| | | | | This also simplifies the Editor Settings as the extension is now automatically shown to avoid ambiguity.
* Don't save project settings when not necessarykobewi2021-02-131-0/+8
|
* Merge pull request #31747 from KoBeWi/scene_stalkingRémi Verschelde2021-02-101-0/+20
|\ | | | | Detect external modification of scenes
| * Detect external modification of scenesTomasz Chabora2021-01-161-0/+20
| |
* | Merge pull request #43222 from KoBeWi/sub_editor_oblivionRémi Verschelde2021-01-291-10/+0
|\ \ | |/ |/| Remove unused get_subeditor() method
| * Remove unused get_subeditor() methodTomasz Chabora2020-10-301-10/+0
| |