summaryrefslogtreecommitdiff
path: root/scene
AgeCommit message (Collapse)Author
2020-05-29Merge pull request #39051 from Xrayez/geometry-splitRémi Verschelde
Split `Geometry` singleton into `Geometry2D` and `Geometry3D`
2020-05-27Split `Geometry` singleton into `Geometry2D` and `Geometry3D`Andrii Doroshenko (Xrayez)
Extra `_2d` suffixes are removed from 2D methods accoringly.
2020-05-27Expose `get_char_size()` from Font instead of BitmapFontMaganty Rushyendra
`get_char_size()` is a public virtual function defined in the `Font` class. Implementations exist for both `BitmapFont` and `Dynamic Font`. However, it was only exposed to the GDScript API through the Bitmap Font, and not for Dynamic Font. This commit exposes the function through `Font` instead. Fixes #23967
2020-05-27Merge pull request #36409 from fire/skeleton-custom-inspectorRémi Verschelde
Custom Skeleton3DEditorPlugin
2020-05-26colorpicker margin bug fixedThakee Nathees
2020-05-25Merge pull request #38978 from nekomatata/remote-inspector-res-previewFabio Alessandrelli
Fix resource preview in remote inspector
2020-05-23Merge pull request #38396 from nekomatata/unexpose-sort-childrenRémi Verschelde
Fix Container sorting not working when overriding _sort_children in gdscript
2020-05-23Fix resource preview in remote inspectorPouleyKetchoupp
The specific case for object reference seems unnecessary, as `RES res = var` already does the work. The case where REF is invalid is never hit in the case of already freed objects. The assignment `res = *r` was causing the resource to be always invalidated on the 3.2 branch.
2020-05-22Custom Skeleton3DEditorPluginK. S. Ernest (iFire) Lee
Co-authored-by: Marios Staikopoulos <marios@staik.net>
2020-05-21Clarifies 'icon_separation' in TabContainer (instead of 'hseparation')Dominik 'dreamsComeTrue' Jasiński
Fixes: #38911
2020-05-20Merge pull request #38794 from nekomatata/text-edit-search-resultRémi Verschelde
TextEdit search returns Dictionary instead of Vector
2020-05-20Merge pull request #38309 from SkyLucilfer/AndroidLineEditRémi Verschelde
Fix Android LineEdit editing bugs
2020-05-19Fixed kinematic body axis lockAndrea Catania
2020-05-19Style: Fix unnecessary semicolons that confused clang-formatRémi Verschelde
2020-05-18Merge pull request #38791 from clayjohn/physical-sky-updateRémi Verschelde
Add night sky to PhysicalSkyMaterial
2020-05-17Allow searching with keyboard input by default in PopupMenuHugo Locurcio
See discussion in https://github.com/godotengine/godot-proposals/issues/43.
2020-05-17Merge pull request #38695 from dreamsComeTrue/node-swap-order-argumentsRémi Verschelde
Replace 'add_child_below_node' with 'add_sibling' in Node
2020-05-16TextEdit search returns a dictionary instead of VectorPouleyKetchoupp
Easier to use than accessing elements in a Vector using indices given by an enum. Breaks compatibility on existing scripts using this functionality.
2020-05-17Fix popup window size calculation in popup_centered_ratio by using Rect2unknown
2020-05-16Add night sky to PhysicalSkyMaterialclayjohn
2020-05-16Merge pull request #38782 from mbrlabs/text-editor-fixRémi Verschelde
Fixed text editor drawing if smooth scrolling is disabled.
2020-05-16Fix Container sorting not working when overriding _sort_children in gdscriptPouleyKetchoupp
Remove _sort_children from script bindings: _sort_children is an internal method which shouldn't be exposed to scripts. Added support for non-bound methods in MessageQueue: So we can use deferred calls without exposing internal methods to scripts. Added debug checks in CallableCustomMethodPointer: Adding method pointer callables to the message queue was causing crashes in case an object was destroyed and the same memory was allocated for another one. The new object had a valid object id but the call was erroneous. Release will be fixed later, along with Variant which has the same problem and is also fixed for debug only.
2020-05-16Fix Android LineEdit editing bugsSkyJJ
2020-05-16Fixed text editor drawing if smooth scrolling is disabled.Marcus Brummer
Fixes #38778
2020-05-16Remove HQ2X and the `Image.expand_2x_hq2x()` methodHugo Locurcio
As of Godot 3.0, HQ2X is no longer used to upscale the editor theme and icons on hiDPI displays, which limited its effective uses. HQ2X was also used to upscale the project theme when the "Use Hidpi" project setting was enabled, but results were often less than ideal. The new StyleBoxFlat and SVG support also make HQ2X less important to have as a core feature. This decreases binary sizes slightly (-150 KB on most platforms, -212 KB on WebAssembly release). This partially addresses #12419.
2020-05-16Merge pull request #38463 from smartin015/3.2-fixgeditRémi Verschelde
Remove get_local_mouse_position() hack in GraphEdit
2020-05-16Remove get_local_mouse_position() hack in GraphEditsmartin015
2020-05-16Fix popup positions on multiple screens (with same scaling only).bruvzg
2020-05-15Replace 'add_child_below_node' with 'add_sibling' in NodeDominik 'dreamsComeTrue' Jasiński
Fixes: #19642
2020-05-14Style: Enforce braces around if blocks and loopsRémi Verschelde
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
2020-05-14Style: Enforce separation line between function definitionsRémi Verschelde
I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
2020-05-14Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde
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.
2020-05-14Style: Fix missing/invalid copyright headersRémi Verschelde
2020-05-14Merge pull request #38718 from neikeq/fix-bindings-after-lightmapperIgnacio Roldán Etcheverry
Fix C# bindings after lightmapper changes
2020-05-14Remove redundant void argument listsRémi Verschelde
Using clang-tidy's `modernize-redundant-void-arg`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-redundant-void-arg.html
2020-05-14Enforce use of bool literals instead of integersRémi Verschelde
Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
2020-05-14Modernize remaining uses of 0/NULL instead of nullptr (C++11)Rémi Verschelde
Using clang-tidy's `modernize-use-nullptr`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-nullptr.html
2020-05-14Port member initialization from constructor to declaration (C++11)Rémi Verschelde
Using `clang-tidy`'s `modernize-use-default-member-init` check and manual review of the changes, and some extra manual changes that `clang-tidy` failed to do. Also went manually through all of `core` to find occurrences that `clang-tidy` couldn't handle, especially all initializations done in a constructor without using initializer lists.
2020-05-13Fix C# bindings after lightmapper changesIgnacio Etcheverry
2020-05-12Merge pull request #38655 from ↵Rémi Verschelde
ice-blaze/minimap-shifted-selection-by-one-line#38532 Fix minimap selection offset
2020-05-12doc: Sync classref with current sourceRémi Verschelde
Adds API changes from the new GPU lightmapper.
2020-05-11Merge pull request #38635 from Calinou/tilemap-rename-ysort-indexRémi Verschelde
Rename various TileMap methods/properties for clarity and consistency
2020-05-11thirdparty: Cleanup after #38386, document provenance and copyrightRémi Verschelde
Also renamed `delaunay.h` to `delaunay_2d.h` to match the class name.
2020-05-11Merge pull request #38386 from reduz/new-lightmapperRémi Verschelde
New GPU lightmapper
2020-05-11Merge pull request #38491 from eduardonunesp/input-line-osx-selectionRémi Verschelde
Using the common behaviour when use command+shift on text line for osx
2020-05-11Merge pull request #31938 from KoBeWi/a_welcome_lagRémi Verschelde
Fix VisibilityEnabler2D behavior on start
2020-05-11Using the common behaviour when use command+shift on text line for osxEduardo Nunes Pereira
* On press left+command+shift or right+command+shift it should behave like shift+home or shift+end and select the text * Using home and end events as reference
2020-05-11Fix minimap selection offsetetienne.frank
The minimap selection was shifted of 1 line too late.
2020-05-10New lightmapperJuan Linietsky
-Added LocalVector (needed it) -Added stb_rect_pack (It's pretty cool, we could probably use it for other stuff too) -Fixes and changes all around the place -Added library for 128 bits fixed point (required for Delaunay3D)
2020-05-10Rename various TileMap methods/properties for clarity and consistencyHugo Locurcio
The YSort renames were tracked in https://github.com/godotengine/godot/issues/16863. This closes https://github.com/godotengine/godot-proposals/issues/814.