Commit Graph

21007 Commits

Author SHA1 Message Date
Tomasz Chabora 5e9400b2e3 Don't modulate canvas on invisible color change 2019-05-24 13:10:21 +02:00
Rémi Verschelde 7c73a741f3
Merge pull request #29125 from rodolforg/fix_spatial_look_at_affecting_scale
fix un-scaling in Spatial::look_at_from_position
2019-05-23 17:01:40 +02:00
Rémi Verschelde 2be57e47b3
Merge pull request #29124 from AMS21/fix-28091
Fixed naming issue when duplicating an export
2019-05-23 17:01:22 +02:00
Rémi Verschelde c20388f2e1
Merge pull request #29123 from ibrahn/init-x11-nullcursor-color
Fixed uninitialised variable in x11 null cursor creation
2019-05-23 17:01:11 +02:00
Rodolfo Ribeiro Gomes 48e4d62554 fix un-scaling in Spatial::look_at_from_position
As mentioned in
https://github.com/godotengine/godot/pull/26897#issuecomment-491178089

the look-at scaling issue solved by PR #26897 happens also in another
look-at method.

Spatial::look_at_from_position() also does not have same input checking
Spatial::look_at() has. Therefore, I fixed it too at same time.
2019-05-23 09:49:50 -03:00
AMS21 fe62b69419 Fixed naming issue when duplicating an export 2019-05-23 14:45:17 +02:00
Rémi Verschelde 1deb41226d
Merge pull request #28738 from 2shady4u/master
Added native binding for dictionary duplication
2019-05-23 13:47:36 +02:00
Rémi Verschelde 2b1c3878f9
Merge pull request #29031 from BastiaanOlij/alpha_shadow
Implement shadow to opacity
2019-05-23 13:37:54 +02:00
Ibrahn Sahir b660247216 Fixed uninitialised variable in x11 null cursor creation
Fully initialised color var.
Clarified intent a little with comments/layout.
2019-05-23 11:47:28 +01:00
Rémi Verschelde 664f462238
Merge pull request #28987 from Xrayez/geometry-clipper-bind
Expose 2D polygon boolean operations in Geometry singleton
2019-05-23 11:32:48 +02:00
shaderbeast 48bd2e459f Added native binding for dictionary duplication
Added entry in gdnative_api.json


Added function to header as well


Fixed versioning
2019-05-23 10:23:47 +02:00
Rémi Verschelde c088386c5b
Merge pull request #29109 from RandomShaper/fix_onion_skinning
Fix onion skinning
2019-05-23 07:58:27 +02:00
Rémi Verschelde 1acc918166
Merge pull request #28847 from YeldhamDev/textedit_wrap_highlight_fix
Fix 'TextEdit's line wrapping being highlighted incorrectly
2019-05-23 07:45:17 +02:00
Michael Alexsander Silva Dias de378ef012 Fix 'TextEdit's line wrapping being highlighted incorrectly
Fixes #22867.
2019-05-22 18:45:24 -03:00
Pedro J. Estébanez 88153fbb61 Fix 2D bones ignored by onion skinning
Fixes #27819.
2019-05-22 20:40:57 +02:00
Andrii Doroshenko (Xrayez) 883ef8570a Expose 2D polygon boolean operations in Geometry singleton
Clipper 6.4.2 is used internally to perform polypaths clipping, as well
as inflating/deflating polypaths. The following methods were added:

```
Geometry.merge_polygons_2d(poly_a, poly_b) # union
Geometry.clip_polygons_2d(poly_a, poly_b) # difference
Geometry.intersect_polygons_2d(poly_a, poly_b) # intersection
Geometry.exclude_polygons_2d(poly_a, poly_b) # xor

Geometry.clip_polyline_with_polygon_2d(poly_a, poly_b)
Geometry.intersect_polyline_with_polygon_2d(poly_a, poly_b)

Geometry.offset_polygon_2d(polygon, delta) # inflate/deflate
Geometry.offset_polyline_2d(polyline, delta) # returns polygons

// This one helps to implement CSG-like behaviour:
Geometry.transform_points_2d(points, transform)
```

All the methods return an array of polygons/polylines. The resulting
polygons could possibly be holes which could be checked with
`Geometry.is_polygon_clockwise()` which was exposed to scripting as well.
2019-05-22 17:12:39 +03:00
Rémi Verschelde fa5cc1da7a
Merge pull request #29003 from Xrayez/clipper-6.4.2-exceptions-fix
Build Clipper with `tools=no` and patch it to auto-disable exceptions
2019-05-22 15:58:24 +02:00
Rémi Verschelde 02bc82f9be
Merge pull request #29022 from mrcdk/preview_generator_fixes
Add some extra functions to EditorResourcePreviewGenerator
2019-05-22 12:16:32 +02:00
Andrii Doroshenko (Xrayez) 9bf48db891 Build Clipper with `tools=no` and patch it to auto-disable exceptions
Reverts "Build polygon clipper only in tools builds" (see #17319)
which allows to build Clipper with tools disabled (release) and because
of that, Clipper has to be patched to optionally disable exceptions in
order to be built on some platforms.

Patched Clipper 6.4.2 to be compiled with exceptions enabled/disabled.
and ensure that Clipper-specific exception macros are defined: don't use
exceptions by default unless exception handling is detected.

Compilation with exceptions will be determined by various
C++ exceptions defines:

* ` __cpp_exceptions` is part of C++ feature testing macros (since C++98);
* `__EXCEPTIONS` is used by some GNU compilers;
* `_CPPUNWIND` is used by MSVC.

The user can override specific exceptions behavior via corresponding
`*_USER` macros (i.e. compiling for embedded systems).
2019-05-22 13:12:21 +03:00
Rémi Verschelde 5fa3204008
Merge pull request #29096 from karroffel/gdnative-variant-evaluate-fix
[GDNative] fix godot_variant_evaluate function
2019-05-22 12:07:57 +02:00
Rémi Verschelde db084811b4
Merge pull request #29087 from ibrahn/init-text-gui-vars
Initialize readonly/editable in LineEdit and TextEdit controls
2019-05-22 11:36:26 +02:00
Rémi Verschelde bc17704fd7
Merge pull request #29085 from YeldhamDev/node2d_bones_undoredo
Add undo/redo to Node2D bone creation
2019-05-22 11:26:11 +02:00
Rémi Verschelde 2dc7be505a
Merge pull request #29098 from akien-mga/lf-utf8
Update gitattributes to enforce LF, fix UTF-8 misencoding of thirdparty files
2019-05-22 10:59:32 +02:00
Rémi Verschelde 41d3f4787e
Merge pull request #29074 from YeldhamDev/theme_editor_panel_fix
Fix bottom panel visibility behaviour in the theme editor
2019-05-22 10:45:25 +02:00
Rémi Verschelde b7e737639f Fix non UTF8-encoded thirdparty files 2019-05-22 10:34:57 +02:00
Yuri Roubinsky d78a947614
Merge pull request #29095 from Chaosus/exp_focus
Makes the expression node to apply only when the focus leaves out
2019-05-22 11:08:20 +03:00
Rémi Verschelde 0acdeb2e12 Update .gitattributes to encompass all text files 2019-05-22 09:10:47 +02:00
thomas.herzog c1e733466b [GDNative] fix godot_variant_evaluate function
Fixes #28984
2019-05-22 09:10:06 +02:00
Chaosus e70ea5d97b Makes the expression node to apply expression only when the focus leaves out 2019-05-22 07:46:47 +03:00
Ibrahn Sahir d8a5fcd3d1 Initialize readonly/editable in LineEdit and TextEdit controls 2019-05-21 21:50:02 +01:00
Michael Alexsander Silva Dias c18e4f0f01 Add undo/redo to Node2D bone creation 2019-05-21 17:17:25 -03:00
Ignacio Roldán Etcheverry e2375f487c
Merge pull request #29079 from neikeq/oopsie
Fix C# build error in MarshalUtils debug code
2019-05-21 19:54:34 +02:00
Yuri Roubinsky 00232b15e9
Merge pull request #29076 from Chaosus/express_fixes2
Fix expression node parsing when input_port + \0 is occured
2019-05-21 20:31:38 +03:00
Ignacio Roldán Etcheverry 9c45432309
Merge pull request #29052 from neikeq/fixes-28667------i-think
Replace call to 'mono_runtime_object_init' with manual ctor invoking
2019-05-21 19:15:32 +02:00
Ignacio Etcheverry 9b76c56098 Fix C# build error in MarshalUtils debug code 2019-05-21 19:09:00 +02:00
Chaosus 6d38754a06 Fix expression node parsing when input_port + \0 is occured 2019-05-21 19:45:01 +03:00
Yuri Roubinsky ebb6eb8be8
Merge pull request #29073 from Chaosus/express_fixes
Fix few bugs in expression node
2019-05-21 19:26:14 +03:00
Michael Alexsander Silva Dias b5c8205312 Fix bottom panel visibility behaviour in the theme editor
Fixes #29034, fixes #29056
2019-05-21 13:16:06 -03:00
Chaosus 6f2abd68f2 Fix few bugs in expression node 2019-05-21 18:37:31 +03:00
Rémi Verschelde b6bd19dfc5
Merge pull request #29018 from guilhermefelipecgs/fix_28969
[StateMachine] Fix error message for travel method
2019-05-21 17:12:11 +02:00
Rémi Verschelde c29ef774d8
Merge pull request #29032 from akien-mga/tools-exceptions-rtti
SCons: Keep exceptions and rtti on Android, iOS and HTML5 tools build
2019-05-21 17:10:51 +02:00
Rémi Verschelde 7d42ca8384
Merge pull request #28838 from Chaosus/vs_exp
Expression node for visual shaders
2019-05-21 16:32:02 +02:00
Rémi Verschelde 1d9bb73a15
Merge pull request #29040 from swarnimarun/fix_override_bug
Clear overrides on passing null
2019-05-21 15:23:18 +02:00
Rémi Verschelde 26e0cc7aa3
Merge pull request #29041 from hbina/add_const
add const to methods that return literals
2019-05-21 15:16:41 +02:00
Rémi Verschelde e3ead06c1d
Merge pull request #29062 from swarnimarun/theme-editor-improvements
Fix Theme Editor Preview
2019-05-21 15:10:14 +02:00
Rémi Verschelde f62638367f
Merge pull request #28964 from Faless/webrtc/channels_pr
WebRTC refactor. data channels, STUN/TURN support.
2019-05-21 13:49:32 +02:00
Rémi Verschelde 86f6d08923 doc: Sync classref with current source 2019-05-21 13:27:03 +02:00
Rémi Verschelde 1595dfb5db i18n: Sync translation template with current source
(cherry picked from commit bf7585530b)
2019-05-21 13:07:26 +02:00
Rémi Verschelde e350c81673 i18n: Sync translations with Weblate
(cherry picked from commit 239a11fe19)
2019-05-21 13:07:20 +02:00
Bastiaan Olij 3ea778e66e Implement shadow to opacity 2019-05-21 20:07:46 +10:00