Commit graph

5258 commits

Author SHA1 Message Date
Rémi Verschelde
77e8947687
Merge pull request #30905 from clayjohn/set-cpuparticles2d-visible
Toggle CPUParticles2D visibility when redrawing
2019-08-01 18:13:28 +02:00
Rémi Verschelde
a967ece4c7
Merge pull request #31009 from Chaosus/vs_fix_outer_product
Fix outerProduct function in visual shaders
2019-08-01 08:48:44 +02:00
Chaosus
c34d75b678 Fix outerProduct function in visual shaders 2019-08-01 08:29:05 +03:00
Hugo Locurcio
0243dc53b8
Tweak Area and PhysicsBody damping setting hints for consistency
This partially addresses #19182.
2019-07-31 13:57:13 +02:00
Rémi Verschelde
d66461e85a
Merge pull request #30972 from Chaosus/vs_copy_paste
Implement copy/paste in visual shaders
2019-07-31 11:56:01 +02:00
Chaosus
f704506807 Implement copy/paste in visual shaders 2019-07-31 12:43:29 +03:00
Emmanuel Barroga
7db96e22dd Fix ProgressBar Wrong Value with Border
Closes: #30969

The FG rectangle of the progressbar is incorrect when dealing with a non-zero border. This issue stems from wrong order of operations when drawing the rectangle: int p = r * get_size().width - mp;
2019-07-30 21:47:11 -07:00
Rémi Verschelde
961b9b30e3
Merge pull request #30932 from Dragoncraft89/master
Translate TabContainer titles, when inherited from node name
2019-07-29 22:41:07 +02:00
Florian Kothmeier
65101c9a20
Translate TabContainer titles, when inherited from node name 2019-07-29 19:07:56 +02:00
NilsIrl
abceb74b49 Remove useless variable and line in OptionButton 2019-07-29 17:41:28 +02:00
NilsIrl
dfecd62235 Change if to switch in OptionButton 2019-07-29 16:47:47 +02:00
clayjohn
cb4d145c22 toggle CPUParticles2D visibility when redrawing 2019-07-28 18:31:52 -07:00
groud
11cb4eb363 Add frame_cords accessors to Sprite and Sprite3D 2019-07-27 13:05:02 +02:00
Rémi Verschelde
f494d5f10b
Revert "Update Control margins when size is overridden by change to minsize" 2019-07-27 12:55:03 +02:00
Michael Alexsander Silva Dias
e8fc875619 Small adjustments to tooltips in '(Editor)FileDialog' 2019-07-26 11:11:09 -03:00
Michael Alexsander Silva Dias
4ff360b73b Fix wrong placement of new line in 'PhysicsBody' warning 2019-07-25 11:53:54 -03:00
Rémi Verschelde
4c74f50d1a
Merge pull request #30351 from bojidar-bg/30288-override-global-theme
Keep track of default theme and project custom default theme seperatelly
2019-07-25 14:54:27 +02:00
Rémi Verschelde
27d1e63dd4
Merge pull request #30807 from akien-mga/da-get_next-hidden
DirAccess: Drop compat get_next(bool *is_dir) which was hidden
2019-07-25 14:51:01 +02:00
Rémi Verschelde
ffc8fb9c48
Merge pull request #30685 from jonri/vehicle-per-wheel-forces
Vehicle per-wheel forces
2019-07-25 11:45:22 +02:00
Rémi Verschelde
e9bff84ce3
Merge pull request #23820 from clayjohn/pointmesh
Added PointMesh primitive
2019-07-25 11:44:11 +02:00
Rémi Verschelde
43238bb59a DirAccess: Drop compat get_next(bool *is_dir) which was hidden
Fixes this warning:
```
./core/os/dir_access.h:74:17: warning: 'virtual String DirAccess::get_next(bool*)' was hidden [-Woverloaded-virtual]
```

Part of #30790.
2019-07-25 11:09:57 +02:00
Rémi Verschelde
1481d299ea
Merge pull request #30776 from akien-mga/editor-configurable-float-step
Inspector: Make default float step configurable
2019-07-25 10:33:45 +02:00
Rémi Verschelde
336846e547 Inspector: Fix PROPERTY_HINT_SPRITE_FRAME not behaving as RANGE
This was a regression in 3.1 and later from the new inspector, where
PROPERTY_HINT_SPRITE_FRAME was not fully re-implemented. It's meant to
be a normal PROPERTY_HINT_RANGE which also automatically increments its
value when keyed in the animation player.

To avoid code duplication, I made the frames properties use the actual
PROPERTY_HINT_RANGE and introduced a PROPERTY_USAGE_KEYING_INCREMENTS
usage flag instead.
2019-07-25 09:29:51 +02:00
clayjohn
ff7c37927a added pointMesh primitive 2019-07-24 12:14:31 -07:00
Rémi Verschelde
d844e30614 Inspector: Make default float step configurable
Also allow lifting the decimal step formatting with a hint range step
of 0. A new `range_step_decimals()` is added for this to avoid breaking
compatibility on the general purpose `step_decimals()` (which still
returns 0 for an input step of 0).

Supersedes #25470.
Partial fix for #18251.
2019-07-23 17:31:38 +02:00
Rémi Verschelde
4c943cca2c
Merge pull request #30716 from qarmin/fixed_static_analiser_code
Fix some code found by Coverity Scan and PVS Studio
2019-07-23 15:08:44 +02:00
qarmin
aab8da25ad Fix some code found by Coverity Scan and PVS Studio 2019-07-23 09:14:31 +02:00
Rémi Verschelde
d8d85762c4
Merge pull request #30753 from Calinou/make-header-run-from-any-location
Make `make_header.py` functional when run from any location
2019-07-22 21:37:25 +02:00
Rémi Verschelde
66d09a6b4c SCons: Fix uses of [].append instead of env.add_source_files()
Also added support for SCons project-absolute paths (starting with #) and
warning about duplicates in add_source_files(), and fixed
default_controller_mappings.gen.cpp being included twice after first build
due to *.cpp globbing.

Part of #30270.
2019-07-22 15:08:32 +02:00
Hugo Locurcio
31eb116d49
Make make_header.py functional when run from any location
This removes the need to `cd` to `scene/resources/default_theme/`
to get the expected result.
2019-07-22 14:02:33 +02:00
Rémi Verschelde
a1b4568ba9
Revert "Tweak SpatialMaterial's default metallic and roughness texture channels" 2019-07-22 11:56:41 +02:00
Rémi Verschelde
9d6b6dbd2f
Merge pull request #30234 from zwostein/fix-AudioStreamPlayer3D
Fixed multichannel panning for AudioStreamPlayer3D.
2019-07-20 12:42:34 +02:00
Rémi Verschelde
d15cf7b672
Merge pull request #30576 from qarmin/lgtm_coverage
Changed some code reported by LGTM and Coverity
2019-07-20 12:00:13 +02:00
qarmin
6cbaf7662f Changed some code showed in LGTM and Coverage 2019-07-20 08:09:57 +02:00
Rémi Verschelde
9384b6ab0e i18n: Sync translation template with current source
Fix a few typos in new strings.
2019-07-19 16:08:40 +02:00
Rémi Verschelde
21a2cd1a04
Merge pull request #23270 from silvanocerza/remote_scene_tree_filter
Implemented remote scene tree filtering
2019-07-19 15:38:07 +02:00
Rémi Verschelde
b79303d39a
Merge pull request #30683 from bojidar-bg/30671-triplanar-binormal
Fix binormal sign when using triplanar mapping
2019-07-19 11:22:59 +02:00
Jon Ring
18103f2b89 Add per-wheel throttle, brake, and steering for vehicles 2019-07-18 14:16:28 -04:00
Bojidar Marinov
bdffdd7e38
Fix binormal sign when using triplanar mapping
Fixes #30671
2019-07-18 19:31:45 +03:00
Hugo Locurcio
ce8a54b634
Lower the default directional shadow maximum distance to 100
With the default camera node settings, this makes directional shadows
look consistent between the editor and the running project.

The original issue occurs because the editor camera defaults to a
Z-far value of 500, whereas the Camera node defaults to a Z-far
value of 100. Since the directional shadow maximum distance is clamped
to the Z-far value, it caused the running project's effective shadow
distance to be lower compared to the editor (100 instead of 200).

This partially addresses #13575.
2019-07-17 20:01:40 +02:00
Bojidar Marinov
ea949ab873
Fix invalid write in AudioStreamSample::save_to_wav
Fixes #29955
2019-07-16 20:58:00 +03:00
Rémi Verschelde
df62bfdd49
Merge pull request #30548 from Calinou/tweak-audio-cutoff-property-hints
Tweak audio cutoff property hints to allow reasonable values only
2019-07-16 08:54:25 +02:00
Michael Alexsander Silva Dias
d91346f720 Fix incorrect caret position when clicking a 'LineEdit' with a non-left alignment 2019-07-15 19:32:41 -03:00
Rémi Verschelde
7d413f075c
Merge pull request #30590 from clayjohn/particle_life
Added individual particle random lifetime
2019-07-15 20:40:57 +02:00
Rémi Verschelde
7d4c3035ad
Merge pull request #30549 from Calinou/improve-2d-raycast-oneway-drawing
Improve 2D RayCast and one-way collision drawing
2019-07-15 11:21:19 +02:00
clayjohn
5ef3374258 added individual particle random lifetime 2019-07-14 23:22:40 -07:00
Rémi Verschelde
71cd4fa40d
Merge pull request #30510 from sparkart/master
Fix GraphNode immediately losing focus
2019-07-15 08:02:14 +02:00
Rémi Verschelde
23f5154de7
Merge pull request #30532 from Chaosus/vs_triplanar
Added triplanar uniform texture node to visual shaders
2019-07-15 07:56:06 +02:00
Emmanuel Barroga
381faf83c3 Fix GraphNode immediately losing focus
Closes: #30243

GraphNode immediately loses focus, and gives focus to its parent.

This fix changes implementation so that it does not transfer focus to its parent after receiving focus. Instead, it will transfer focus when the "close button" is pressed.
2019-07-13 17:25:20 -07:00
Hugo Locurcio
350227013d
Improve 2D RayCast and one-way collision drawing
- Make RayCast2D gray when it's disabled
- Make the one-way collision arrow use the inverted shape debugging
  color (will result in an orange color by default)
  - This makes it easier to distinguish it from RayCast2D arrows
- Make lines slightly thinner
- Make the RayCast2D arrow tip larger
- Use anti-aliasing for the RayCast2D and one-way collision lines
2019-07-12 23:50:38 +02:00