summaryrefslogtreecommitdiff
path: root/scene/resources
AgeCommit message (Collapse)Author
2018-05-11Update oversampling of outlines after window size changeRuslan Mustakov
Fixes #18774.
2018-05-08Merge pull request #18374 from JFonS/fix_particles_animationJuan Linietsky
Fix particle animation controls
2018-05-08Always emit dynamic font change in update_oversamplingRuslan Mustakov
Fixes #15787. The issue occurred when two (or more) separate DynamicFont instances used the same DynamicFontAtSize instance due to having equal properties. The first instance updated its data_at_size and emitted "changed" signal, but the second did not because it considered the data_at_size to be up to date, even though it has just been updated.
2018-05-08Perfect FreeType-based outlines for DynamicFontsRuslan Mustakov
- Implement outlines based on FreeType Stroker API. This allows artifact-free results, similar to what you will see in Web or any text editing tools. Outline is a part of DynamicFont rather than Label, because outlines have to be baked into the font's atlas. Font has a default outline_color and a Label can specify font_outline_modulator that will be multiplied with the Font's color to get the final result. - draw_char now has to be called twice to fully render a text - first with p_outline == true for each character and then with p_outline == false for each character. - Number of draw-calls is reduced from 5 to 2 per outlined character. - Overall cleanup of DynamicFont code, extracted duplicated code pieces into separate methods. - The change is backward-compatible - Labels still have outline properties that work exactly as they worked before. Closes #16279.
2018-05-07Added a simpler way to flip faces, closes #17373 and closes #17369Juan Linietsky
2018-05-07Merge pull request #17504 from endragor/fix-oversampling-autowrapJuan Linietsky
Ceil dynamic font glyph size
2018-05-07Merge pull request #17828 from bojidar-bg/17779-progressbar-minimum-sizeJuan Linietsky
Fix StyleBox ignoring region rect and ProgressBar using center size
2018-05-07Merge pull request #17845 from JFonS/disable_spatial_shadowsJuan Linietsky
Added flag on SpatialMaterial to disable shadows
2018-05-05Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadowMax Hilbrunner
Implement font shadows for RichTextLabel
2018-05-05Merge pull request #18407 from danilo2205/get_closest_pointMax Hilbrunner
Add methods get_closest_point and get_closest_offset for both Curve2D and Curve3D
2018-05-04Merge pull request #18480 from BastiaanOlij/add_custom_aabb_to_primitivesRémi Verschelde
Added custom aabb to primitives
2018-05-01Added methods get_closest_point and get_closest_offset to both Curve2D and ↵danilo2205
Curve3D
2018-05-01Adds z-index properties to TileSets.Pieter-Jan Briers
2018-04-29added custom aabb to primitivesBastiaan Olij
2018-04-27CSG Support for Godot!Juan Linietsky
-Missing Icons -Missing freezing option (for baking light and faster load) -Missing a way to export from Godot (GLTF2?) -Probably buggy (may freeze editor, can be worked around easily, but let me know if this happens so it's easier to catch bugs) Happy testing!
2018-04-27Fixed stylebox crashsersoong
2018-04-23Fix particle animation controlsJFonS
2018-04-12Implement font shadows for RichTextLabelMarkus Törnqvist
2018-04-08Merge pull request #18072 from AlexHolly/masterGeorge Marques
expose Tileset TileMode to GDScript
2018-04-08expose Tileset TileMode to GDScriptAlexander Holland
2018-04-08Merge pull request #16705 from Chaosus/generate_normals_flipJuan Linietsky
Add flip switch to SurfaceTool.generate_normals
2018-04-08Merge pull request #17382 from bojidar-bg/13971-path-array-unsavedJuan Linietsky
Duplicate Arrays and Dictionaries when instancing scene in editor
2018-04-08Merge pull request #17443 from Noshyaar/tilesetcrashJuan Linietsky
Fix converting to tileset crashes Godot if existing file is not tileset
2018-04-07Merge pull request #17602 from ivodopiviz/tscn-issuesJuan Linietsky
Removed unnecessary newlines from tscn
2018-04-07Merge pull request #17730 from RandomShaper/radio-buttons-in-menusJuan Linietsky
Radio buttons in menus
2018-04-01Mesh: fix crash when creating mesh outline from QuadMeshPoommetee Ketson
Since create_outline can only make outline for PRIMITIVE_TRIANGLES, when QuadMesh (which is PRIMITIVE_TRIANGLE_FAN) is used to create outline, will leave `arrays` empty, and crash when it is being indexed for "indices" subarray. This PR shows error when there's only one surface and it is not TRIANGLES. Also prevent the crash if it has more than one surface and none of them are TRIANGLES (and any other cases that could leave `arrays` empty) by checking the size of `arrays` == 8 before indexing it, since the method seems to expect `arrays` to be of that size.
2018-03-29Added flag on SpatialMaterial to disable shadowsJFonS
2018-03-28Fix StyleBox ignoring region rect and ProgressBar using center sizeBojidar Marinov
ProgressBar used the center size of the stylebox to calculate its minimum size, thus disallowing certain setups. If the old behaviour is wanted, it can be forced by providing a custom minimum size, or by giving proper margins to the stylebox. Fixes #17779.
2018-03-27Add radio-button-looking entries to PopupMenuPedro J. Estébanez
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually. `is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button. Keeping check in the name adds an additional clue about these facts. Closes #13055.
2018-03-25Removed unnecessary newlines from tscnIvan Vodopiviz
References #6025. Made small changes to avoid adding newlines for no reason.
2018-03-23Fix converting to tileset crashes Godot if existing file is not tilesetPoommetee Ketson
also make TileSetEditorPlgn tile list updates the preview modulate
2018-03-14Ceil dynamic font glyph sizeRuslan Mustakov
Fixes #15459. When oversampling is enabled, glyphs may have fractional size, but they are still rendered into integral pixels, which results in them taking more space than was anticiped by autowrapping algorithm. The solution here is to return ceiled width, which makes autowrapper consider characters a bit larger than they are, but it doesn't hurt the actual rendering and ensures there is enough space for the characters.
2018-03-13Duplicate Arrays and Dictionaries when instancing scene in editorBojidar Marinov
Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes #13971
2018-03-13Merge pull request #17094 from Calinou/add-dynamicfont-hinting-optionsRémi Verschelde
Add an hinting mode setting to DynamicFonts
2018-03-02Fix serialization of identifiers with non printable ASCII charactersRémi Verschelde
Fixes #6888.
2018-02-28Add an hinting mode setting to DynamicFontsHugo Locurcio
- Editor font hinting can now be tweaked in the Editor Settings. - DynamicFonts used in projects now have tweakable hinting settings in their DynamicFontData child. Changes will be visible upon reloading the scene in the editor.
2018-02-24Merge pull request #16932 from groud/fix_collision_shape_selectionRémi Verschelde
Fixes collisions shape selection
2018-02-24Merge pull request #16930 from PJB3005/18-02-22-styleboxtexture-textureRémi Verschelde
StyleBoxTexture: Texture instead of RES for texture and normal_map.
2018-02-23Refactor version macros and fix related bugsRémi Verschelde
The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros.
2018-02-22Fixes collisions shape selectionGilles Roudiere
2018-02-22StyleBoxTexture: Texture instead of RES for texture and normal_map.Pieter-Jan Briers
2018-02-21Fix typos with codespellluz.paz
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
2018-02-21Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion.Juan Linietsky
2018-02-21Merge pull request #16772 from damarindra/tileset_editor_improvementRémi Verschelde
Tileset Editor Improvement
2018-02-20Tileset Editor ImprovementDamar Indra
2018-02-20Merge pull request #16718 from Chaosus/triplanarfixRémi Verschelde
Add refraction possibility when triplanar uv mode enabled
2018-02-19Merge pull request #16530 from AndreaCatania/raysRémi Verschelde
Improved ray shape (2D and 3D) by addiing the possibility to act as r…
2018-02-19Merge pull request #15780 from volzhs/emojiRémi Verschelde
Support colored font
2018-02-19Improved ray shape (2D and 3D) by addiing the possibility to act as regular ↵Andrea Catania
shape
2018-02-19Added flip switch to generate_normalsChaosus