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
volzhs
5e8017721a
Refactor BaseButton event handling
...
also _toggled() function and "toggled" signal called when unpressed by ButtonGroup
2019-05-21 22:14:01 +09: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
Tomasz Chabora
2d84ec5468
Pass mouse events to SpinBox from its LineEdit
2019-05-21 14:49:53 +02:00
Rémi Verschelde
92f67ceef3
i18n: Skip unsupported locales for editor translations
...
Godot currently can't properly render scripts that require Right-To-Left
and font shaping support, so we skip those.
This is a temporary measure until these features are supported.
Fixes #28577 .
2019-05-21 14:38:46 +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
Rémi Verschelde
2bee15eee1
Merge pull request #29050 from hbina/redundant_null_checks
...
removed a redundant null check in assimp editor
2019-05-21 12:07:38 +02:00
Chaosus
5648924eef
Expression node for visual shaders
2019-05-21 12:11:41 +03:00
Swarnim Arun
7ec7dba766
Fix Theme Editor Preview
2019-05-21 14:38:46 +05:30
Rémi Verschelde
9065cc2402
Merge pull request #29011 from zann1x/master
...
Initialize padding on PoolByteArray serialization
2019-05-21 10:07:26 +02:00
Rémi Verschelde
aa33b6a3fa
Merge pull request #29046 from volzhs/tree-page-down
...
PageDown key selects last one when left items count is short
2019-05-21 10:06:09 +02:00
volzhs
6f97022041
PageDown key selects last one when left items count is short
2019-05-21 15:32:17 +09:00
hbina085
f78baa5f93
added a const keyword for a methods that return constant literal...
2019-05-21 02:16:30 -04:00
Swarnim Arun
6ab7fb4976
Clear overrides on passing null
2019-05-21 10:50:43 +05:30
hbina085
13680885b6
removed a redundant NULL check in assimp editor of a pointer to an array declared in the same statement block
2019-05-20 18:08:59 -04:00
Ignacio Etcheverry
66b930a266
Replace call to 'mono_runtime_object_init' with manual ctor invoking
2019-05-21 00:06:04 +02:00
Rémi Verschelde
8c95e1aaf8
Merge pull request #28952 from jbuck3/update-margins
...
Update Control margins when size is overridden by change to minsize
2019-05-20 22:40:35 +02:00