summaryrefslogtreecommitdiff
path: root/scene
AgeCommit message (Collapse)Author
2020-02-28Merge pull request #36388 from AndreaCatania/some_renamesRémi Verschelde
Rename Navigation{Mesh,Polygon}Instance and PlaneShape for clarity
2020-02-28Renamed NavigationPolygonInstance to NavigationRegion2DAndrea Catania
2020-02-28Merge pull request #36556 from RandomShaper/rework_mutexRémi Verschelde
Reimplement `Mutex` with C++'s `<mutex>` (plus more)
2020-02-27Signals: tab_changed now is emitted when it's on scene treeMateo Dev .59
2020-02-27Merge pull request #36232 from Calinou/add-soft-line-length-guidelineRémi Verschelde
Add a soft line length guideline to the script editor
2020-02-27Merge pull request #36288 from Calinou/meshlibrary-allow-non-tools-useRémi Verschelde
Allow using `MeshLibrary.get_item_preview()` in non-editor builds again
2020-02-27Merge pull request #36581 from Calinou/doc-improve-add-child-below-nodeRémi Verschelde
Improve the `Node.add_child_below_node()` documentation
2020-02-27Improve the `Node.add_child_below_node()` documentationHugo Locurcio
This closes https://github.com/godotengine/godot-docs/issues/2730.
2020-02-27Renamed PlaneShape to WorldMarginShapeAndrea Catania
2020-02-27Renamed NavigationMeshInstance to NavigationRegionAndrea Catania
2020-02-27Merge pull request #36050 from eswartz/line-edit-move-cursor-on-unselectRémi Verschelde
Use left/right arrow to move cursor when unselecting in LineEdit
2020-02-26Reimplement Mutex with C++'s <mutex>Pedro J. Estébanez
Main: - It's now implemented thanks to `<mutex>`. No more platform-specific implementations. - `BinaryMutex` (non-recursive) is added, as an alternative for special cases. - Doesn't need allocation/deallocation anymore. It can live in the stack and be part of other classes. - Because of that, it's methods are now `const` and the inner mutex is `mutable` so it can be easily used in `const` contexts. - A no-op implementation is provided if `NO_THREADS` is defined. No more need to add `#ifdef NO_THREADS` just for this. - `MutexLock` now takes a reference. At this point the cases of null `Mutex`es are rare. If you ever need that, just don't use `MutexLock`. - Thread-safe utilities are therefore simpler now. Misc.: - `ScopedMutexLock` is dropped and replaced by `MutexLock`, because they were pretty much the same. - Every case of lock, do-something, unlock is replaced by `MutexLock` (complex cases where it's not straightfoward are kept as as explicit lock and unlock). - `ShaderRD` contained an `std::mutex`, which has been replaced by `Mutex`.
2020-02-26Changed float type to int for INDEX visual shader inputYuri Roubinsky
2020-02-26Merge pull request #36536 from Chaosus/vs_intRémi Verschelde
Add support for integer type in visual shaders
2020-02-26Add support for integer type in visual shadersYuri Roubinsky
2020-02-25Added missing destructor for Navigation2DDominik 'dreamsComeTrue' Jasiński
Although destructor call was missing, it still doesn't heal #36537 memory leaks. Further description how that might be overcome - on GitHub Partialy covers #36537
2020-02-25Merge pull request #36532 from Faless/debugger/weakref_crash_vulkanRémi Verschelde
Fix debugger crash inspecting freed object.
2020-02-25Fix debugger crash inspecting freed object.Fabio Alessandrelli
This seems to be the correct way to validate a reference. Why is cast_to failing? Is this the correct way of checking if the object is valid?
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-24Merge pull request #36488 from Chaosus/capsule_yRémi Verschelde
Changed default capsule axis to vertical
2020-02-23Merge pull request #36089 from dreamsComeTrue/fix-autocomplete-quotesRémi Verschelde
Fix: auto brace complete for quoted strings
2020-02-23Changed default capsule axis to verticalYuri Roubinsky
Co-authored-by: Hugo Locurcio <https://hugo.pro>
2020-02-23Merge pull request #36411 from Janglee123/rect2-tweenRémi Verschelde
Added tween support for Rect2
2020-02-23Added tween support for Rect2janglee
Fixes #34575
2020-02-23Replace FALLTHROUGH macro by C++17 [[fallthrough]]Rémi Verschelde
This attribute is now part of the standard we target so we no longer need compiler-specific hacks. Also enables -Wimplicit-fallthrough for Clang now that we can properly support it. It's already on by default for GCC's -Wextra. Fixes new warnings raised by Clang's -Wimplicit-fallthrough.
2020-02-22Merge pull request #36441 from YeldhamDev/tabs_unused_constantsRémi Verschelde
Remove unused theme constants in Tab(Container)
2020-02-22Remove unused theme constants in Tab(Container)Michael Alexsander
2020-02-21Fix: auto brace complete for quoted stringsDominik 'dreamsComeTrue' Jasiński
Fixes #36002
2020-02-21Merge pull request #36421 from Chaosus/vs_sort_custom_nodsYuri Roubinsky
Refactor node processing in visual shader member dialog
2020-02-21Refactor node processing in visual shader member dialogYuri Roubinsky
2020-02-21Added StringName as a variant type.Juan Linietsky
Also changed all relevant properties defined manually to StringName.
2020-02-21Merge pull request #36415 from reduz/skeleton-skin-namedRémi Verschelde
Add support for named binds in Skin.
2020-02-21Add support for named binds in Skin.Juan Linietsky
Helps better reutilization of skeletons from Maya exported files.
2020-02-21Huge Debugger/EditorDebugger refactor.Fabio Alessandrelli
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-20Merge pull request #36375 from Xrayez/pimpmaps-typosRémi Verschelde
Fix MIMPAMPS typos in constants throughout the engine
2020-02-20Fixes crash when loading StreamTexture from fileHaoyu Qiu
2020-02-20Fix MIMPAMPS typos in constants throughout the engineAndrii Doroshenko (Xrayez)
2020-02-18Fix compilation warnings and re-enable werror=yes on TravisRémi Verschelde
Fix -Wunused-variable, -Wunused-but-set-variable and -Wswitch warnings raised by GCC 8 and 9. Fix -Wunused-function, -Wunused-private-field and -Wtautological-constant-out-of-range-compare raised by Clang. Fix MSVC 2019 warning C4804 (unsafe use of type 'bool' in comparison operation). GCC -Wcpp warnings/Clang -W#warnings (`#warning`) are no longer raising errors and will thus not abort compilation with `werror=yes`. Treat glslang headers are system headers to avoid raising warnings. Re-enables us to build with `werror=yes` on Linux and macOS, thus catching warnings that would be introduced by new code. Fixes #36132.
2020-02-18Added utility functions to the new NavigationServer:Andrea Catania
- Vector3 get_closest_point_to_segment(const Vector3 &p_from, const Vector3 &p_to, const bool &p_use_collision = false); - Vector3 get_closest_point(const Vector3 &p_point); - Vector3 get_closest_point_normal(const Vector3 &p_point); - Object *get_closest_point_owner(const Vector3 &p_point);
2020-02-18Merge pull request #36318 from akien-mga/fix-mono-buildRémi Verschelde
Fix CanvasItem bindings and Mono build
2020-02-18Merge pull request #36317 from godotengine/revert-36182-how_to_text_fileRémi Verschelde
Revert "Remove TextFile from public API"
2020-02-18Fix arguments/default values in CanvasItem bindingsRémi Verschelde
2020-02-18Revert "Remove TextFile from public API"Rémi Verschelde
2020-02-18PoolVector is gone, replaced by VectorJuan Linietsky
Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
2020-02-17Merge pull request #36229 from dreamsComeTrue/rich-text-label-key-eventsRémi Verschelde
RichTextLabel: proper handling of internal key events
2020-02-17Merge pull request #36233 from WARIO-MDMA/audiostreamplayer-pitch-scaleRémi Verschelde
[AudioStreamPlayer/2D/3D] Reduce the max value of pitch_scale's inspector slider
2020-02-17Fix GDCLASS for Texture2D/TextureLayeredYuri Roubinsky
2020-02-17Allow using `MeshLibrary.get_item_preview()` in non-editor builds againHugo Locurcio
This closes #36268.
2020-02-16Fixes memory leak when loading StreamTextureHaoyu Qiu