summaryrefslogtreecommitdiffstats
path: root/editor/plugins/editor_preview_plugins.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-0/+1
|\
| * Don't include `core/io/image.h` in `core/os/os.h`Yevhen Babiichuk (DustDFG)2024-10-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `core/os/os.h` doesn't use `core/io/image.h`. It just brings transitive dependencies. Lots of dependencies because `core/os/os.h` is transitively included in almost every file of godot Also added `core/io/image.h` into files^1 where `Ref<Image>` and `core/os/os.h` were used to prevent obscure errors involving `Ref<Image>` ^1 except those which include `core/io/image_loader.h` or `core/io/image.h` by corresponding .h file with the same name Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com> Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
* | Merge commit godotengine@92e51fca7247c932f95a1662aefc28aca96e8de6Spartan3222024-10-141-2/+7
|\|
| * Fix crash when creating thumbnails for 3d texturesBlueCube33102024-10-091-2/+7
| |
* | 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>
* Add image previews for 3D and layered texturesBlueCube33102024-09-101-6/+36
|
* Prevent generating preview for zero sized texturejsjtxietian2024-06-181-0/+4
|
* [Core] Add scalar versions of `Vector*` `min/max/clamp/snap(ped)`A Thousand Ships2024-05-021-1/+1
| | | | Convenience for a number of cases operating on single values
* Add tooltip plugin for AudioStreamkobewi2024-04-151-0/+2
|
* Use `Vector*` component-wise `min/max/clamp` functions where applicableA Thousand Ships2024-03-201-1/+1
|
* Rework viewport capture in preview generationPedro J. Estébanez2024-02-211-42/+6
|
* Fix member names of `AudioFrame` to match extensionA Thousand Ships2024-02-131-4/+4
|
* Generate script resource preview without parsingYuri Sizov2024-01-261-10/+27
|
* Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* Abort threaded preview generators on exitYuri Sizov2023-11-101-0/+12
|
* Highlight doc comments in a different colorDanil Alexeev2023-10-081-1/+10
|
* Extract ScriptInstance to simplify includesYuri Sizov2023-09-061-0/+1
| | | | | | | | | This allows to include script_instance.h directly in the generated gdvirtual.gen.inc, and remove excessive includes from the codebase. This should also allow Resource to use GDVIRTUAL macros, which wasn't possible previously due to a circular dependency.
* Extract and reorganize texture resource classesHendrik Brucker2023-07-141-0/+3
|
* Add metadata to resource previewskobewi2023-05-101-14/+15
|
* 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".
* Add safety-checks before some servers `free()`Adam Scott2022-12-291-0/+3
|
* Rename Image's `get_rect` to `get_region`Micky2022-11-011-1/+1
| | | | Also renames its parameter to from "rect" to "region".
* Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-181-6/+6
|
* Make some Image methods statickobewi2022-10-141-9/+3
|
* Rename CONNECT_ONESHOT TO CONNECT_ONE_SHOTMicky2022-09-061-3/+3
| | | | For consistency. Every other exposed `one_shot` is spaced out like this.
* Refactor BitMap and add testsHendrik Brucker2022-09-011-1/+1
| | | | Co-authored-by: Resul Çelik <resul_celik@hotmail.com>
* Implement Physical Light Units as an optional setting.clayjohn2022-08-311-0/+14
| | | | | | This allows light sources to be specified in physical light units in addition to the regular energy multiplier. In order to avoid loss of precision at high values, brightness values are premultiplied by an exposure normalization value. In support of Physical Light Units this PR also renames CameraEffects to CameraAttributes.
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-1/+1
|
* Remove Signal connect bindsJuan Linietsky2022-07-291-3/+3
| | | | | Remove the optional argument p_binds from `Object::connect` since it was deprecated by Callable.bind(). Changed all uses of it to Callable.bind()
* Implement BPM supportreduz2022-07-231-1/+1
| | | | | | | | | | | Based on #62896, only implements the BPM support part. * Implements BPM support in the AudioStreamOGG/MP3 importers. * Can select BPM/Bar Size and total beats in a song file, as well as edit looping points. * Looping is now BPM aware * Added a special importer UI for configuring this. * Added a special preview showing the audio waveform as well as the playback position in the resource picker. * Renamed `AudioStream::instance` to `instantiate` for correctness.
* Add static methods for creating Image and ImageTexturekobewi2022-07-081-46/+10
|
* Refactor Font configuration and import UI, and Font resources.bruvzg2022-07-061-14/+5
|
* 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-2/+2
| | | | | | | | | | | | * 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!
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-11/+11
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Add gradient resource preview generatorHendrik Brucker2022-04-211-0/+31
|
* Editor: Cleanup some includes dependenciesRémi Verschelde2022-02-151-1/+1
| | | | | | | | | | | 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-0/+1
|
* Refactor some object type checking code with `cast_to`Rémi Verschelde2022-02-081-3/+3
| | | | Less stringly typed logic, and less String allocations and comparisons.
* Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-9/+5
|
* Use fill() to fill an entire image instead of setting pixels individually.Anilforextra2022-01-081-5/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #56041 from Zylann/null_checks2Rémi Verschelde2021-12-181-0/+1
|\ | | | | Fix crash if font fails loading when generating a preview
| * Fix crash if font fails loading when generating a previewMarc Gilleron2021-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Historical crash log: ERROR: No loader found for resource: res://addons/gdquest.mannequin/assets/theme/fonts/montserrat/Montserrat-Medium.ttf. at: (core\io\resource_loader.cpp:213) ERROR: res://addons/gdquest.mannequin/assets/theme/fonts/default_font.tres:8 - Parse Error: [ext_resource] referenced non-loaded resource at: res://addons/gdquest.mannequin/assets/theme/fonts/montserrat/Montserrat-Medium.ttf at: ResourceLoaderText::_parse_ext_resource (scene\resources\resource_format_text.cpp:170) ERROR: res://addons/gdquest.mannequin/assets/theme/fonts/default_font.tres:8 - Parse Error: [ext_resource] referenced non-loaded resource at: res://addons/gdquest.mannequin/assets/theme/fonts/montserrat/Montserrat-Medium.ttf at: ResourceLoaderText::load (scene\resources\resource_format_text.cpp:649) ERROR: Failed loading resource: res://addons/gdquest.mannequin/assets/theme/fonts/default_font.tres. Make sure resources have been imported by opening the project in the editor at least once. at: (core\io\resource_loader.cpp:206)
* | Fix font preview text color on light backgroundHaoyu Qiu2021-12-181-1/+3
|/
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-1/+1
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-1/+1
|
* Fix previews sometimes displaying wrong/blank imageBrian Semrau2021-11-051-23/+27
|
* Use Callable in RS::request_frame_drawn_callbackBrian Semrau2021-11-051-18/+6
|