Commit Graph

2835 Commits

Author SHA1 Message Date
Rémi Verschelde 89cec177a2 Merge pull request #12308 from GiantBlargg/revert-11587-directional_light_init
Revert "In editor, instance DirectionalLight with an initial orientation"
2017-10-26 22:33:27 +02:00
Sofox 43cbef219b Overhauled the ParallaxBackground system so that it works properly regardless of the zoom of the camera. 2017-10-26 20:42:51 +01:00
Cédric Fuchs c42bbe1073 Fixes infinite loop in NavPolygonInstance warnings 2017-10-26 13:02:04 +02:00
Jakub Grzesik 5a83fc50ec fix a 'proximity_fade_distacne' typo in material 2017-10-25 20:27:52 +02:00
Jakob Sinclair 708982bee1 Fix margin with tree drawing
Fixes @akien-mga point brought up in #12352

Signed-off-by: Jakob Sinclair <sinclair.jakob@mailbox.org>
2017-10-24 21:06:27 +02:00
Gilles Roudiere 37d2b17f88 Fixes the selection rect in item_list drawn not clipped 2017-10-24 10:09:39 +02:00
Indah Sylvia 79dda1350d Finished transition of Patch9Rect to NinePatchRect 2017-10-24 13:01:45 +07:00
Rémi Verschelde ad5613ec40 Merge pull request #12310 from Paulb23/toggle_highlight_current_line
Added setting to toggle current line highlighting
2017-10-23 23:25:11 +02:00
Rémi Verschelde c529fa6987 Merge pull request #12316 from mrezai/fix-disable-3d
Fix disable_3d=yes compile errors
2017-10-23 23:19:21 +02:00
Jakub Grzesik 8f054d519f missing set/get_collision_mask_bit() for RayCast
in the same fastion how it's implemented in Area or Bodies
2017-10-23 14:31:58 +02:00
Bastiaan Olij e72a6644dc Missing binds for SSAOBlur enum caused issues compiling GDNative cpp_bindings 2017-10-23 21:27:12 +11:00
Rémi Verschelde abea816e54 Revert "Rename Schlick GGX to GGX." 2017-10-23 07:42:36 +02:00
mrezai 8f48eeaa88 Fix disable_3d=yes compile errors 2017-10-22 21:24:20 +03:30
Juan Linietsky b4f0f59d9f Many fixes to SSAO, should be good now. 2017-10-22 13:52:48 -03:00
Paulb23 45670df354 Added setting to toggle current line highlighting 2017-10-22 13:42:08 +01:00
Giantblargg 0c5eba826c Revert "In editor, instance DirectionalLight with an initial orientation" 2017-10-22 04:13:46 -06:00
Rémi Verschelde 6dd25b5a5b Merge pull request #11882 from Noshyaar/pr-filedialog
FileDialog: enlarge the file list a bit
2017-10-22 10:35:30 +02:00
Rémi Verschelde 1054c6edee Merge pull request #12296 from tagcup/ggx_rename
Rename Schlick GGX to GGX.
2017-10-22 10:30:11 +02:00
Poommetee Ketson bbab451dde CubeMap: fix duplicate flags property 2017-10-22 10:28:02 +07:00
Poommetee Ketson 3a71471edd FileDialog: enlarge the file list a bit 2017-10-22 09:14:11 +07:00
Ferenc Arn cb0bf1edea Rename Schlick GGX to GGX.
Schlick's approximation and GGX are orthogonal concepts.

Furthermore, it's usage so far has been inconsistent: we don't even use it with anisotropic SchlickGGX, and Burley (Disney) diffuse does use it while its name doesn't indicate it.

The use of Schlick's approximation in Burley and GGX is an implementation detail and doesn't need to be reflected to the namig.
2017-10-21 19:35:54 -04:00
Rémi Verschelde 01a5a8b86c Merge pull request #12291 from RandomShaper/fix-raycast-naming
Rename RayCasts collision_layer to collision_mask
2017-10-21 23:44:46 +02:00
Rémi Verschelde e0c14e6306 Merge pull request #12286 from NathanWarden/add_cubemap_properties
Added properties for CubeMap.
2017-10-21 23:44:06 +02:00
Rémi Verschelde d39348151e Merge pull request #12293 from Paulb23/line_highlighting_fix
Fixed current line highlighting, issue 12166

[ci skip]
2017-10-21 23:41:53 +02:00
Paulb23 c594c8001b Fixed current line highlighting and visual indication of empty selected lines 2017-10-21 21:35:50 +01:00
Pedro J. Estébanez 7b12ae39f2 Rename RayCasts collision_layer to collision_mask
The point is that `RayCast`s are checked against objects' `collision_layer`(s), but they themselves are considered no to _belong_ to any layer. Therefore, the correct name for their property is `collision_mask`, rather than `collision_layer`.

Only renaming is needed since the behavior was already the right one, only that it wasn't matching what users would expect from the name and description of the property.

Fixes #7589, where it's also discussed.
2017-10-21 22:17:47 +02:00
Poommetee Ketson 9cadb9e5f3 Bind unbound enums, rearrange some by value 2017-10-22 01:58:02 +07:00
Nathan Warden 5f7478e196 Added properties for CubeMap. 2017-10-21 13:23:32 -05:00
Ferenc Arn 0b89b90b36 Fix PathFollow rotations.
Replaced the lookahead (which is problematic) with exact delta in offset. Also made some other minor fixes and improvements.

Fixes #12258.
2017-10-21 12:51:49 -04:00
Poommetee Ketson 9b634180aa Refactor Fixed to Physics 2017-10-21 21:28:08 +07:00
Poommetee Ketson ec12e3b4f9 Merge pull request #12042 from MillionOstrich/treeitem-move-to-bottom
Stop move_to_bottom losing references to treeitems
2017-10-21 04:58:11 +07:00
Rémi Verschelde 8cb76888ae Merge pull request #12228 from hi-ogawa/fix-spatial-shader-conversion-with-texture
Fix spatial shader conversion with texture
2017-10-20 23:55:58 +02:00
Rémi Verschelde 7969565de7 Merge pull request #12052 from hi-ogawa/particle-material-conversion-plugin
Create ParticlesMaterialConversionPlugin
2017-10-20 23:54:56 +02:00
Rémi Verschelde 08ebbc90a8 Merge pull request #12107 from RandomShaper/fix-anim-before-first-key
Fix animation before first key
2017-10-20 23:08:02 +02:00
Rémi Verschelde f2f75d1f11 Merge pull request #12149 from endragor/check-input-handled
Check if input is handled before handling it
2017-10-20 22:47:31 +02:00
AlexHolly d46093b974 fix LineEdit drag selection to the left 2017-10-20 22:25:12 +02:00
Rémi Verschelde 067fc88488 Merge pull request #12224 from NathanWarden/scene_tree_added_signal
Added a node_added signal to the SceneTree
2017-10-20 22:10:47 +02:00
Rémi Verschelde fd4c907a35 Merge pull request #12260 from bojidar-bg/11975-navpoly-freeze
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor

[ci skip]
2017-10-20 16:40:39 +02:00
Bojidar Marinov a6472d0344
Fix adding a NavigationPolygonInstance to a Node2D freezing the editor
Fixes #11975
2017-10-20 16:55:47 +03:00
Rémi Verschelde 0e8db63009 Merge pull request #12084 from santouits/tab_container_bug
tab container arrows don't work when a popup was set

[ci skip]
2017-10-20 13:04:25 +02:00
Rémi Verschelde 7f477dae26 Merge pull request #12132 from TheSofox/parallax-fixes
Tweaks ParallaxBackground to work better with zoom. 

[ci skip]
2017-10-20 13:03:23 +02:00
geequlim eeacae563c Fix window display shrink can't set to float numbers 2017-10-20 12:52:18 +02:00
Gilles Roudiere 5e348e72c1 Merge pull request #12159 from RandomShaper/fix-sticky-slider
Reset slider mouse state on hiding/removing
2017-10-20 11:48:57 +02:00
Nathan Warden 999ad9c0a8 Added a node_added signal to the SceneTree 2017-10-19 10:46:00 -05:00
Rémi Verschelde 6a363ad470 Merge pull request #12230 from BastiaanOlij/arvr_fix_binand
Fix button signals on ARVRController

[ci skip]
2017-10-19 16:19:24 +02:00
Rémi Verschelde f2a31aeefb Merge pull request #12229 from Noshyaar/pr-v
Fix Viewport clear mode is bool instead of int, fixes #12202

[ci skip]
2017-10-19 16:11:11 +02:00
Bastiaan Olij 914c4d3066 Always mixing up binary and and boolean and... 2017-10-20 00:28:17 +11:00
Poommetee Ketson f9f3829bd2 Fix Viewport clear mode is bool instead of int, fixes #12202 2017-10-19 18:17:11 +07:00
Hiroshi Ogawa 3bd2a4c421 Fix spatial shader conversion with texture 2017-10-19 16:10:24 +09:00
AlexHolly 776fbe749c Itemlist rmb now provides the same pos as Tree rmb 2017-10-18 14:56:38 +02:00
Sofox aaf6e77198 Tweaks ParallaxBackground to work better with zoom. Ensures a Parallax Layer with a (1,1) motion scale synchs perfectly with a regular stationary sprite that is outside the ParallaxBackground, regardless of the zoom level and movement of the camera. 2017-10-18 11:17:42 +01:00
Pedro J. Estébanez 807a84f7c9 Reset slider mouse state on hiding/removing
Resetting `grab.active`, but also `mouse_inside` so that after reappearing it must be hovered again -even if the mouse is still over it- in order to get a highlight. That is consistent to the way other controls in the engine, e.g. buttons, work.

Fixes #12130.
2017-10-16 20:59:25 +02:00
Ruslan Mustakov 5da02a0d9c Check if input is handled before handling it 2017-10-16 19:13:33 +07:00
Rémi Verschelde 0c9d201044 Merge pull request #11407 from toger5/selection_override_color
added option to keep font color on selection + use consistent selection color in help (fixes: #11501)
2017-10-15 20:49:38 +02:00
Pedro J. Estébanez f4959ee32b Fix animation before first key
Prior to this, the value assumed for the interval between the start of the track and the first frame would be the one of the first key if
- *seeking/playing a continuous track*;
- *seeking a discrete track*.

And the first key would be ignored until reached -thus not modifying the target property/transform- in the remaining case; namely, *playing a discrete track*.

In other words, the inner workings of the animation system considered the unreached first key for interpolation but not for a query of every key inside a time range.

With this changes, the first key is only considered is the animation is looped and ignored otherwise. That way, in order to have a start value, you'll need an explicit key at the very beginning of the track, while having the flexibility of the animation player not touching the target value until the first key is reached.

This corresponds to the point 1) of #10752.
2017-10-15 01:28:08 +02:00
Pedro J. Estébanez 2d2467c0ff Fix animation not stopping after seeking to the end 2017-10-14 22:21:20 +02:00
Matt Hughes 3edd3cd377 Fix video playback
This adds support to

- VideoPlayer
- VideoStreamWebm
- VideoStreamTheora
2017-10-14 23:20:39 +09:00
Andreas Haas 4c716f3623
[DOCS] Fix a few typos. 2017-10-14 12:45:49 +02:00
santouits c91c22b1f3 tab container arrows don't work when a popup was set 2017-10-14 11:03:27 +03:00
Daniel J. Ramirez 9001ba26aa Added and improved some missing icons, plus some other visual fixes. 2017-10-13 16:39:17 -05:00
Ruslan Mustakov 6106fd88d4 Remove junk output
Remove several prints that were added for engine debugging, but are
of no use to the end user, and only pollute the editor and game logs.
2017-10-13 12:40:19 +07:00
Hiroshi Ogawa d777681882 Create ParticlesMaterialConversionPlugin and format generated shader code 2017-10-12 21:30:19 +09:00
Rémi Verschelde 3b76eea233 Merge pull request #12032 from Grosskopf/seperation-bugfix
Turned around minimum size scaling for seperator. Fixes #12020
2017-10-12 14:01:32 +02:00
Grosskopf 5194c03992 turned arround minimum Size for Seperator in reaction to issue #12020 2017-10-12 00:25:56 +02:00
Rémi Verschelde d6fe668cef Merge pull request #12026 from hickop/default-theme-sliders
Added grabber_area to default_theme sliders. Fixes #11261
2017-10-11 22:45:34 +02:00
MillionOstrich 8d8a90daef Stop move_to_bottom losing references to treeitems 2017-10-11 21:35:56 +01:00
Rémi Verschelde 98718ecd63 Merge pull request #11951 from hungrymonkey/fix_issue11873
fix issue 11873.  AudioStreamSample get_data() seems to be misaligned.
2017-10-11 22:30:13 +02:00
hickop 57d8ff636c Added grabber_area to default_theme sliders. Fixes #11261 2017-10-11 16:33:17 +02:00
Gilles Roudiere 409e58e67a Merge pull request #12018 from hi-ogawa/fix-animated-sprite-frame-property-slider
Fix AnimatedSprite frame property slider in editor
2017-10-11 16:28:28 +02:00
Ignacio Etcheverry 740ef3dc97 Merge pull request #11954 from neikeq/d
Added 'exposed' field to ClassInfo for registered classes
2017-10-11 13:54:34 +02:00
Hiroshi Ogawa 130ad806f8 Fix AnimatedSprite frame property slider in editor 2017-10-11 17:49:39 +09:00
Ignacio Etcheverry 0c2e882210 Adds 'exposed' field to ClassInfo
This field represents if the class is exposed to the scripting API.
The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize').
- Added missing registration of classes that are meant to be exposed.
2017-10-09 23:49:17 +02:00
hungrymonkey 5080a9cf21 Fix data alignment issues in get_data() in AudioStreamSample
I am fixing the issue by adding DATA_PAD to the return pointer as
suggested by hi-ogawa

When using set_data in AudioStreamSample in PoolByteArray, the data is set
using a DATA_PAD to pad the pointer to the correct place as such

uint8_t *dataptr = (uint8_t *)data;
copymem(dataptr + DATA_PAD, r.ptr(), datalen);
data_bytes = datalen;
godot/scene/resources/audio_stream_sample.cpp#L473

All I am doing is adding a DATA_PAD to the return pointer to
get_data() in AudioStreamSample to change

godot/scene/resources/audio_stream_sample.cpp#L48
PoolVector<uint8_t>::Write w = pv.write();
copymem(w.ptr(), data, data_bytes);

to

PoolVector<uint8_t>::Write w = pv.write();
uint8_t *dataptr = (uint8_t *)data;
copymem(w.ptr(), dataptr + DATA_PAD, data_bytes);

Please review whether or not set or get is correct.
Because this issue seems to be fixable by removing DATA_PAD in set_data()
instead of adding DATA_PAD to get_data(). I have not tested the latter
fix

Fixes #issue, 11873
2017-10-09 11:34:28 -07:00
Rémi Verschelde 438e32d652 Merge pull request #11941 from Paulb23/members_selected_scroll_issue_11648
Consistant scroll when using members overview, issue 11648
2017-10-09 15:19:15 +02:00
Rémi Verschelde e515a69916 Merge pull request #11915 from marcelofg55/desc_animation_errors
Added a name/path description when there is an error in the Animation Track
2017-10-09 14:53:39 +02:00
Rémi Verschelde d989479744 Merge pull request #11884 from Noshyaar/pr-fd2
FileDialog: fix select index out of range

[ci skip]
2017-10-09 12:45:00 +02:00
Paulb23 b07dfd75ea Consistant scroll when using members overview, issue 11648 2017-10-08 14:29:27 +01:00
Marcelo Fernandez ac2879d189 Added a name/path description when there is an error in the Animation Track 2017-10-07 11:51:24 -03:00
Poommetee Ketson 5e67a3bca7 FileDialog: fix select index out of range 2017-10-06 22:03:12 +07:00
Bartłomiej T. Listwon 7430bbdac1 Fix LINK/UNLINK console spam with navmeshes
Removed unnecessary debug messages. Fixes #10804
2017-10-06 13:36:15 +02:00
Andreas Haas 701c77ba29 Merge pull request #11859 from marcelofg55/invalid_customtheme_crashfix
Fix crash when a custom theme can't be loaded
2017-10-06 13:11:52 +02:00
Andreas Haas ec2a4da6d6 Merge pull request #11854 from endragor/fix-few-classdb-defs
Add NIL_IS_VARIANT usage to few definitions
2017-10-06 13:09:53 +02:00
BastiaanOlij ce74efacbb Made a few tweaks to the interface 2017-10-06 20:35:55 +11:00
Marcelo Fernandez 9aa20986f0 Fix crash when a custom theme can't be loaded 2017-10-05 15:52:57 -03:00
Ruslan Mustakov 61ddf52983 Add NIL_IS_VARIANT usage to few definitions
The missing usage flag led to GDNative API descriptions containting
arguments with "void" type.
2017-10-05 18:51:22 +07:00
Gilles Roudiere b759d1416f Merge pull request #11840 from djrm/pr_fix_drive_selection
Match file dialog drive with the current folder.
2017-10-05 12:09:35 +02:00
Daniel J. Ramirez 670564f98e Match file dialog drive with the current folder. 2017-10-04 14:46:58 -05:00
Hein-Pieter van Braam 7c2cda72b8 Merge pull request #11816 from terahxluna/video_player_set_stream_position
Add function set_stream_position to VideoPlayer. Closes #8727
2017-10-04 18:03:13 +02:00
Juan Linietsky ef08228db7 Restored normal bias as default bias in GIProbe 2017-10-04 09:32:16 -03:00
Terah 43410ca363 Add function set_stream_position to VideoPlayer
Also add docucmentation for set_stream_position in VideoPlayer
2017-10-04 07:46:08 +02:00
Andreas Haas 3c1dab7be7 Merge pull request #11770 from Noshyaar/pr-๓
CurveEditor: fix can't edit right tangent
2017-10-03 00:26:12 +02:00
Andreas Haas 5303efb2fa Merge pull request #11659 from AndreaCatania/prephysics
Renamed fixed_process to physics_process
2017-10-02 23:10:36 +02:00
Poommetee Ketson 0ce4d82bbf
CurveEditor: fix can't edit right tangent 2017-10-03 03:48:11 +07:00
Andreas Haas cb71a6d6fa Merge pull request #11754 from magyar123/master
Fixed center align in LineEdit
2017-10-02 22:26:42 +02:00
Poommetee Ketson 34ea271380 Merge pull request #11646 from djrm/pr_visual_improvements
Several visual improvements.
2017-10-02 23:49:44 +07:00
Poommetee Ketson c96fc380e5 Merge pull request #11650 from kitsune/fix-range-unshare-crash
Fix crash when unsharing a range that is not shared
2017-10-02 23:48:59 +07:00
Poommetee Ketson fcc2095909 Merge pull request #11713 from dracc/master
Added VehicleWheel::get_skidinfo()
2017-10-02 23:37:23 +07:00
Juan Linietsky c9a925c4e0 Switched Burley/Lambert, and restored diffuse term to 0-1 range for compatibility. 2017-10-01 19:08:49 -03:00
balint magyar b6b2ec7b77 Fixed center align in LineEdit 2017-10-01 20:11:46 +02:00
jagt 86bcbd5b15 Fix GraphEdit mouse scroll axis.
maps BUTTON_WHEEL_UP/DOWN to vscroll of GraphEdit.
maps KEY_SHIFT + BUTTON_WHEER_UP/DOWN to hscroll of GraphEdit.
2017-10-01 20:14:42 +08:00
AndreaCatania 4537977d6d Renamed fixed_process to physics_process 2017-09-30 16:19:07 +02:00
Gilles Roudiere 670e443046 Merge pull request #11684 from toger5/tab_container_menu_button_center
Vertical alignement (TabContainer menu button)
2017-09-30 12:43:49 +02:00
Gilles Roudiere cc846fdf0a Merge pull request #11701 from toger5/coustom_script_bg_fix
fixed custom background weird offset for code editor
2017-09-30 12:40:24 +02:00
Lucas Eriksson 4c712b9db5 Added VehicleWheel::get_skidinfo(). 2017-09-30 03:02:16 +02:00
Juan Linietsky d4e20555e8 Ability to set a custom FOV makes it possible to use sky on orthogonal view. Closes #9186 2017-09-29 18:56:52 -03:00
toger5 8c087e046d fixed coustom bg weired offset for code editor 2017-09-29 17:00:17 +02:00
toger5 814c50106b Vertical alignement (TabContainer menu button) 2017-09-29 13:23:11 +02:00
Indah Sylvia 392a94686c Fixed typo: 'texure' to 'texture' 2017-09-29 04:40:01 +07:00
Daniel J. Ramirez 15986ea343 Several visual improvements.
Added proper label sizing
Improved text editor status bar
Fixed some issues with ItemList and also some style fixes
Added background to color picker samples (the mrcdk fix)
Fixed slider ticks.
Added VS breakpoint and error styleboxes.
2017-09-28 15:00:43 -05:00
toger5 e49ac08c24 do not overlap current line with selection color 2017-09-28 16:12:12 +02:00
toger5 d58a159e38 keep font color on selection as default 2017-09-28 14:17:14 +02:00
Dylan Enloe 45a322b6ae Fix crash when unsharing a range that is not shared
Added a guard to Range::_unref_shared to prevent it from doing anything
in the event that shared is null.

Fixes Issue: #11521
2017-09-28 00:45:05 -07:00
Rémi Verschelde da144fed4c Merge pull request #11617 from groud/fix_bad_display
Fixes bad display
2017-09-27 22:15:00 +02:00
Rémi Verschelde 78423320d7 Merge pull request #11618 from tagcup/button_toggle
Fix toggle mode of BaseButton.

[ci skip]
2017-09-27 15:47:59 +02:00
Marcelo Fernandez f12b4e5fa3 Fixed bug with clearing the stream in AudioPlayerStream 2017-09-27 10:30:08 -03:00
Ferenc Arn 9c516d8383 Fix toggle mode of BaseButton.
..which got broken with #11480.
2017-09-26 20:10:44 -04:00
Gilles Roudiere bd8a5fba30 Fixes set_anchors_and_margins_preset() 2017-09-27 00:38:41 +02:00
Gilles Roudiere 6f185cc9f7 Remove unecessary anchors&margins set causing bad display (sons of containers) 2017-09-27 00:38:28 +02:00
volzhs c5f0717053 Fix crash when scene has LineEdit and run from editor 2017-09-26 16:19:02 +09:00
Rémi Verschelde 59c3f61d57 Merge pull request #11587 from Zylann/directional_light_init
In editor, instance DirectionalLight with an initial orientation

[ci skip]
2017-09-26 08:11:57 +02:00
Rémi Verschelde f577efd47e Merge pull request #11424 from groud/control_node_presets
Implements set_margins_preset(...)
2017-09-26 00:11:46 +02:00
Marc Gilleron 2ac8c2fa91 In editor, instance DirectionalLight with an initial sun-like orientation 2017-09-25 23:17:23 +02:00
Rémi Verschelde 938681724f Merge pull request #11541 from Paulb23/tree_arrow_goto_parent
Goto to parent on left arrow in tree with single column

[ci skip]
2017-09-25 23:16:06 +02:00
Rémi Verschelde 5567cbe6ae Merge pull request #11545 from Paulb23/line_edit_caret_blink_resetting_issue_10764
Fixed caret blink and speed resetting in scenes, issue 10764

[ci skip]
2017-09-25 23:10:32 +02:00
Rémi Verschelde 7bb9a26de3 Merge pull request #11546 from Paulb23/scrollbar_jitter
Fixed scrollbar Jitter when clicking

[ci skip]
2017-09-25 23:08:48 +02:00
Elliott Sales de Andrade ffab67b8da Use BoolVariable in target/component/advanced options. 2017-09-25 14:36:02 -04:00
Poommetee Ketson 0761efaf36 Merge pull request #11552 from Tetane/master
Add missing constant binding STRETCH_ASPECT_EXPAND in SceneTree
2017-09-25 19:20:52 +07:00
Tetane b3f3a91e15 Add a missing constant binding in SceenTree
Add missing constant binding "STRETCH_ASPECT_EXPAND" 
(I cannot test it because godot does not compile anymore on my pc (windows10))
2017-09-24 20:29:18 +02:00
Paulb23 8b80e97338 Fixed caret blink and speed resetting in scenes, issue 10764 2017-09-24 17:22:47 +01:00
Paulb23 5815aaa035 Fixed scrollbar jitter when clicking 2017-09-24 16:19:52 +01:00
Paulb23 35c5422dc2 Goto to parent on left arrow in tree with single column 2017-09-24 13:33:03 +01:00
damarindra b786e7877b Fix: CollisionObject shape owner indexing is inconsistent 2017-09-24 15:55:45 +07:00
Juan Linietsky 81c9cfdc1b Added light affect parameter to baked AO 2017-09-23 23:10:34 -03:00
Marcelo Fernandez 46af050e93 Rename get_position => get_playback_position and seek_pos => seek on audio classes 2017-09-23 16:55:00 +02:00
Juan Linietsky fbabef6da3 Fixes to rim parameter in shader 2017-09-23 08:27:48 -03:00
Marcelo Paez 5e50fde3d9 Changed get_audio_bus and set functions to get_audio_bus_name and set
and edited docs for Area2D due to renaming o get_audio_bus and set_audio_bus
2017-09-22 15:05:09 -03:00
Juan Linietsky 3237e05c36 Ability to convert from SpatialMaterial to ShaderMaterial 2017-09-22 09:20:52 -03:00
Gilles Roudiere 05bb8e0c10 Remove set_area_as_parent_rect and replace it by set_anchors_and_margins_preset(PRESET_WIDE) 2017-09-22 11:39:44 +02:00
Rémi Verschelde 15042128a6 Merge pull request #11480 from tagcup/button_unpress_fix
Ensure pressed is set to false in BaseButton::_unpress_group.

[ci skip]
2017-09-22 09:25:08 +02:00
Gilles Roudiere 92f062696a Implements set_margins_preset(...) 2017-09-22 09:23:07 +02:00
Ferenc Arn b4417161f5 RichTextLabel: Added get_visible_line_count method.
Also exposed get_line_count to GDScript.
2017-09-21 21:43:33 -04:00
Ferenc Arn ca3061d9c2 Ensure pressed is set to false in BaseButton::_unpress_group. 2017-09-21 20:58:32 -04:00
Juan Linietsky bf371dcb32 Added proximity and distance fade to SpatialMaterial 2017-09-21 15:20:28 -03:00
Rémi Verschelde a1779c9044 Merge pull request #11013 from MednauN/master
Fix duplication of node with script
2017-09-21 10:53:58 +02:00
Rémi Verschelde 82f13288dd Merge pull request #11453 from djrm/pr_visuals
Visual tweaks.
2017-09-21 10:51:06 +02:00
Rémi Verschelde 2d05e102b7 Merge pull request #11447 from akien-mga/queue_delete
Let queue_free() work on nodes which are not in the scene tree
2017-09-21 10:42:02 +02:00
Rémi Verschelde d79ce05b91 Merge pull request #11365 from leezh/freetype_mono
Added support for FT_PIXEL_MODE_MONO in FreeType
2017-09-21 10:37:21 +02:00
Daniel J. Ramirez 00755ff2c0 Visual tweaks.
Updated icons
Updated some color
2017-09-20 19:29:52 -05:00
Rémi Verschelde 4820dfc570 Let queue_free() work on nodes which are not in the scene tree
In practice such nodes could directly be free()'ed, but this little change
prevents users from leaking memory by mistake.
Closes #9074.
2017-09-20 21:49:56 +02:00
letheed 5ad9be4c24 Rename pos to position in user facing methods and variables
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Evgeny Zuev 521280ec44 Fix duplication of node with script
When duplicating node with script, properties of script
weren't copied sometimes.
It happened because properties were copied in arbitrary
order, and properties of the script were setted before the
"script" property itself, i.e. while script is sill NULL.

Also, DUPLICATE_SCRIPTS flag wasn't working - script was
always copied because `_duplicate` looked for
"script/script" property while it should be just "script".

Now "script" property is being set before all others,
and "script/script" changed to
`CoreStringNames::get_singleton()->_script`.
2017-09-20 10:56:31 +07:00
Rémi Verschelde 752a116847 Merge pull request #11256 from djrm/pr_visual_improvements
Visual improvements and new look for VS
2017-09-19 23:44:09 +02:00
Rémi Verschelde 2785444f89 Merge pull request #10437 from groud/2d_editor_enhancements
Some 2d editor enhancements
2017-09-19 23:24:17 +02:00
Zher Huei Lee 2ca82225b7 Added support for FT_PIXEL_MODE_MONO in FreeType 2017-09-19 14:00:00 +08:00
Gilles Roudiere b5f29fe073 Add some options and reorganize the 2D editor menus. Makes available forced snapping. 2017-09-18 23:20:18 +02:00
Rémi Verschelde 30ba4076cd Merge pull request #11372 from volzhs/fix-smooth-scroll
Fix smooth scrolling in ScrollBar
2017-09-18 20:04:39 +02:00
Rémi Verschelde cc161dcd6f Merge pull request #11021 from tuga3d/autocomplete-logic-attempt2
autocomplete logic attempt 2, fixes #10695
2017-09-18 08:58:18 +02:00
Rémi Verschelde a00f19a921 Merge pull request #11328 from Paulb23/left_right_arrow_tree_issue_10737
Added Left / Right arrow navigation in tree, issue 10737
2017-09-17 22:45:19 +02:00
volzhs 7da0ec01c0 Fix smooth scrolling in ScrollBar
fixes #11369
2017-09-18 05:31:21 +09:00
Marcelo Fernandez 31ba932e3b Fix crash when using key+u on a line with only a # 2017-09-17 17:07:42 -03:00
Rémi Verschelde 0953c8fd55 Merge pull request #11314 from marcelofg55/master
Fix possible crash with ctrl-u on script editor
2017-09-17 12:56:13 +02:00
Rémi Verschelde 317512e2fb Merge pull request #11301 from volzhs/fix-richtextlabel
Make clickable properly in editor help
2017-09-17 12:55:47 +02:00
Rémi Verschelde c74bab66aa Merge pull request #11274 from Rubonnek/keep-argument-names-consistent
Renamed function arguments to keep them consistent between declaration and implementation
2017-09-17 12:53:48 +02:00
Rémi Verschelde c24ca2c7a8 Merge pull request #10900 from toger5/theme_tab_border
Added border for tabs + container.
2017-09-17 12:41:36 +02:00
Daniel J. Ramirez d84c79d349 Fixed compilation with tools=no 2017-09-16 23:33:44 -05:00
Poommetee Ketson d8ca7d4405 Merge pull request #11282 from djrm/pr_script_editor_auto_theme
Added adaptive text editor theme
2017-09-17 08:55:13 +07:00
Poommetee Ketson 69f0d3b663 Merge pull request #11269 from toger5/fix_get_stylebox_parent_class
also loop for classes if there is no coustom theme fixes #11250
2017-09-17 08:52:26 +07:00
Paulb23 1a0ffe3b64 Added Left / Right arrow navigation in tree, issue 10737 2017-09-16 16:26:05 +00:00
Marcelo Fernandez a2837360d0 Fix possible crash with ctrl-u on script editor 2017-09-16 04:20:20 -03:00
Daniel J. Ramirez ba11dc3f48 Added adaptive text editor theme, this includes the shader editor 2017-09-15 16:08:22 -05:00
volzhs 8d1792a294 Make clickable properly in editor help
fixes #3671
2017-09-16 02:14:45 +09:00
Andreas Haas 6b729726e0 Merge pull request #11280 from BastiaanOlij/fix_arvr_joyid
joyid is set to -1, not 0 when no joystick entity has been created
2017-09-15 10:33:48 +02:00
Thomas Herzog 7dffed485b Merge pull request #11230 from maxim-sheronov/fix_enum_bindings
Fix enums bindings
2017-09-15 08:43:35 +02:00
BastiaanOlij c46b8f444a joyid is set to -1, not 0 when no joystick entity has been created 2017-09-15 09:53:59 +10:00
toger5 10c400c456 Added border for tabs + container.
- moved tabConetent position to be more reasonable.
 - fixed drawing order to allow those kind of styles.
2017-09-15 00:50:34 +02:00
Wilson E. Alvarez 072e379ffe Renamed function arguments to keep them consistent between declaration and implementation 2017-09-14 13:49:15 -04:00
Daniel J. Ramirez 74d028729f Improved VisualScriptEditor 2017-09-14 12:45:42 -05:00
toger5 202e4c8836 also loop for classes if there is no coustom theme fixes #11250 2017-09-14 18:15:39 +02:00
Rémi Verschelde 57a5548965 Merge pull request #11191 from toger5/slider_highlight_area
added highlight area to slider
2017-09-13 20:09:28 +02:00
Maxim Sheronov 0fffa45158 Fix enums bindings
Add missed bindings for enums
Move some enums to class to have correct output of api.json
2017-09-13 20:57:07 +03:00
Rémi Verschelde ea25573297 Merge pull request #10995 from GodotExplorer/pr-tree
Add custom minumus height to TreeItem
2017-09-13 19:25:55 +02:00
Rémi Verschelde 27ae3c839d Merge pull request #7908 from SaracenOne/recast
In-editor navmesh generation.
2017-09-13 19:22:29 +02:00
Hein-Pieter van Braam 89c50f73c7 Fix out of bound array indexing (reverb_vol)
Same issue as in a3f9fe52. AudioFrame[3] being indexed at [3]
2017-09-13 17:47:51 +02:00
Hein-Pieter van Braam a3f9fe52ec Fix out of bound array indexing
730d36f350 introduced introduced some code that indexes AudioFrame[3],
it is however defined as AudioFrame[3]. This increases the size to [4]
2017-09-13 17:38:09 +02:00
Rémi Verschelde c2741e2385 Merge pull request #11069 from aroncds/master
KinematicBody2D api most friendlier
2017-09-13 15:07:17 +02:00
Juan Linietsky 06138bf18c Renamed play to playing property, but now playing and is_playing is the same, to avoid confusing. Closes #11211 2017-09-13 08:41:26 -03:00
toger5 c2c8aac9a3 added highlight area to slider 2017-09-12 22:55:23 +02:00
Hein-Pieter van Braam 7f40734a1c Merge pull request #10568 from marcelofg55/surround_fixes
Fixed issues with surround sound on audio server
2017-09-12 20:59:35 +02:00
Daniel J. Ramirez 1e8048dd45 Improved theme generation, and other fixes 2017-09-12 13:16:38 -05:00
Marcelo Fernandez 730d36f350 Fixed issues with surround sound on audio server 2017-09-12 15:13:28 -03:00
Rémi Verschelde 6aa90e35bb Merge pull request #11015 from toger5/rtl_default_stylebox_empty
rtl uses styleBoxEmpty as defualt fixes: #11014
2017-09-12 13:26:18 +02:00
Rémi Verschelde 50eb62ea6e Merge pull request #11002 from NathanWarden/vehicle_wheel_warning
Added a warning message when a VehicleWheel is not a child of a VehicleBody.
2017-09-12 13:11:48 +02:00
Juan Linietsky 1c5376ae59 Many fixes to visual script, changed virtuals override for a proper selector. 2017-09-12 07:58:54 -03:00
Rémi Verschelde aabbd00284 Merge pull request #10908 from hpvb/fix-unused-variables
Fix unused variable warnings
2017-09-12 12:55:53 +02:00
Rémi Verschelde 0f006994d8 Merge pull request #11007 from saltares/issue-9988
Renames _add_child_below_node() to add_child_below_node(). Fixes #9988.
2017-09-12 12:04:03 +02:00
Rémi Verschelde cf941fdc35 Merge pull request #11026 from hpvb/fix-assign-in-if
Remove assignment and declarations in if statements
2017-09-12 11:57:49 +02:00
Rémi Verschelde 2b50dc5d4f Merge pull request #11057 from hpvb/fix-various-warnings
Fix various assorted warnings
2017-09-12 11:39:47 +02:00
Rémi Verschelde 3941e01a57 Merge pull request #11041 from hpvb/fix-clang-format-error
Fix serveral recent new clang-format errors

[ci skip]
2017-09-12 11:16:36 +02:00
Poommetee Ketson fb9f41a071 Merge pull request #11135 from willnationsdev/area2d-docs
Area2D Documentation + constants in _bind_methods
2017-09-12 13:16:27 +07:00
Will Nations d441cc9660 Updated Area2D docs and added enum constants to scripting 2017-09-11 22:39:28 -05:00
Poommetee Ketson 88fd69c9bb Merge pull request #11142 from BastiaanOlij/arvr_signal_id
Added ID to tracker signals and property for storing hand
2017-09-12 05:10:35 +07:00
Poommetee Ketson 27a848e408 Merge pull request #11152 from SaracenOne/mesh_arrays_access
Script access to formatted arrays and blend_arrays in meshes.
2017-09-12 04:42:18 +07:00
Poommetee Ketson 5edb3b6ee4 Merge pull request #11167 from bojidar-bg/9547-fix-metadata-duplication
Fix duplication of nodes resulting in shared metadata
2017-09-12 04:19:26 +07:00
Poommetee Ketson 1c063abf0d Material: fix priority not int 2017-09-11 18:13:28 +07:00
Bojidar Marinov ebee9898ca
Fix duplication of nodes resulting in shared metadata
Fixes #9547
2017-09-11 12:34:36 +03:00
SaracenOne 92bbd2d713 Script access to formatted arrays and blend_arrays in meshes. 2017-09-11 06:53:34 +01:00
Aron de Castro 6e0892f223 Added to kinematicbody2d the copy and paste of the API friendler of KinematicBody 2017-09-10 13:07:47 -03:00
Bastiaan Olij de309c426d Added ID to tracker signals and property for storing hand 2017-09-10 16:25:12 +10:00
Hein-Pieter van Braam b2a38854fd Fix unused variable warnings
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Hein-Pieter van Braam 8230bf0a2f Remove assignment and declarations in if statements
After discussing with @reduz and @akien-mga it was decided that we do
not allow assignments or declarations in if statements. This PR removes
the instances of this I could find by automated means.
2017-09-08 14:59:15 +02:00
Hein-Pieter van Braam 67a706fc1b Fix various assorted warnings
Fix various warnings that don't have enough instances to merit
individual commits. Also fixes a potential bug in audio_server.cpp.
2017-09-08 14:57:48 +02:00
Juan Linietsky 5ca3af3371 Ability to use a sky for reflection together with a background color. 2017-09-07 20:45:37 -03:00
Hein-Pieter van Braam 5e18967d77 Fix serveral recent new clang-format errors 2017-09-08 00:20:16 +02:00
Juan Linietsky eedb39091a Several fixes to directional shadows, closes #10926
Added option to change directional light range mode, between optimized and stable. For Orthogonal, you might need to use optimized.
2017-09-07 18:00:47 -03:00
Juan Linietsky 1eeda0f32f Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true. 2017-09-07 11:22:07 -03:00
Juan Linietsky 98af411a37 Renamed playing property of audiostreams to play, to make it clearer. Fixes #10730
Also disabled the auto shut down of the property when stream ends, to make it easier to animate
2017-09-06 22:03:04 -03:00
Juan Linietsky 36e91b07d8 Check whether stuff is visible before baking it, closes #10525 2017-09-06 18:24:29 -03:00
Paulo Gomes 9b72f08042 second take at autocomplete logic, using a TextOperation check. 2017-09-06 19:23:09 +01:00
toger5 1c07d0e9aa rtl uses styleBoxEmpty as defualt 2017-09-06 16:29:22 +02:00
Rémi Verschelde 0b8fa1e010 Remove dead ButtonGroup code 2017-09-06 14:41:34 +02:00
Juan Linietsky 308a6f4f99 hide next pass for material types that make it pointless, closes #10686 2017-09-05 20:40:50 -03:00
David Saltares 0549484c77 Renames _add_child_below_node() to add_child_below_node(). Closes #9988. 2017-09-05 22:43:28 +01:00
Nathan Warden 8370f22b4c Added a warning message when a VehicleWheel is not a child of a VehicleBody. 2017-09-05 12:32:48 -05:00
Geequlim f248f06d45 Add custom minumus height to TreeItem
And expose the method `get_drop_section_at_pos` of Tree
2017-09-05 21:02:13 +08:00
Juan Linietsky 2802dced84 Automatically redraw when shaders using TIME are visible, fixes #10554 2017-09-05 00:30:39 -03:00
Rémi Verschelde 45800413d8 Merge pull request #10978 from Noshyaar/pr-meshlib
MeshLibrary: remove duplicated line

[ci skip]
2017-09-05 00:33:00 +02:00
Rémi Verschelde 0f63b68336 Merge pull request #10822 from hoelzl/toggle-button
Fix inconsistent toggle button behavior
2017-09-05 00:14:05 +02:00
Rémi Verschelde c9593a285b Merge pull request #10902 from toger5/rtl_copy_and_selection_color
fixed copy on osx + help selection color
2017-09-04 23:11:12 +02:00
Poommetee Ketson 9301ab5a57 MeshLibrary: remove duplicated line 2017-09-05 04:02:24 +07:00
Rémi Verschelde 6960f8a3b8 Merge pull request #10916 from volzhs/vertical-align-tree-lineedit
LineEdit in Tree is aligned vertical center
2017-09-04 22:58:32 +02:00
Rémi Verschelde bba365fab7 Merge pull request #10931 from djrm/pr_style_fixes
Improved color temperature in script editor
2017-09-04 22:50:54 +02:00
Saracen 92e77d5ff2 Recast integration. 2017-09-04 21:41:57 +01:00
toger5 07d5911c40 fixed copy on osx + help selection color 2017-09-04 18:57:52 +02:00
Juan Linietsky 6d233c651b -Changed KinematicBody API yet again to make it friendlier
-Fixed get_scale functions (and added set_scale) to make it more coherent when decomposing and composing (fixes bugs in transform interpolation)
2017-09-04 07:49:42 -03:00
Rémi Verschelde df11de72c9 Merge pull request #10932 from djrm/pr_fix_metrics
Fixed some metrics (some issues caused by the new Noto Sans font).
2017-09-04 08:10:04 +02:00
Rémi Verschelde fb263b73aa Merge pull request #10901 from toger5/script_background_cleanup
StyleBoxSupport for RichTextLabel and cleanup for script+docs backgrounds fixes #10685
2017-09-04 08:05:17 +02:00
Rémi Verschelde fe3b8b48dd Merge pull request #10894 from Paulb23/brace_auto_indent
Added support for brace auto indent and fixed indent above.
2017-09-04 07:59:51 +02:00
Rémi Verschelde 7040a390ad Merge pull request #10937 from djrm/pr_fix_typo
Fix. resizeable -> resizable.
2017-09-04 07:37:59 +02:00
Daniel J. Ramirez d6b664f671 Fix. resizeable -> resizable.
(not actually a typo, but the rest of the API uses resizable)
2017-09-03 13:12:52 -05:00
Juan Linietsky adde89e8b1 -Added an optimization so physics shapes are configured later, speeds up grid map loading and editing 2017-09-03 14:54:15 -03:00
Juan Linietsky 281fb4e4fb Added transmission shader parameter. 2017-09-03 10:30:37 -03:00
Daniel J. Ramirez 215b110cd3 Improved color temperature in script editor 2017-09-03 02:44:59 -05:00
Daniel J. Ramirez e298f931a6 Fixed some metrics (some issues caused by the new Noto Sans font).
plus other minor fixes
2017-09-03 01:49:31 -05:00
volzhs c1b31aeb94 LineEdit in Tree is aligned vertical center 2017-09-03 12:56:25 +09:00
toger5 b606285219 Unified script panel backgrounds.
- simplefied it with using the new rtl.
 - removed ("ScriptPanel", "EditorStyles") for since rtl now can be used
 - unified backgrounds when script editor color is set to transparent => option to set background color adapt to theme is deprecated.
2017-09-02 18:28:35 +02:00
toger5 0f62db23ac richTextLable implemented stylebox support
- also fixed issue with total_chars ignoring first line
2017-09-02 18:20:04 +02:00
Paulb23 cfa5f37ee7 Added support for brace auto indent and fixed indent above 2017-09-02 15:59:30 +01:00
Rémi Verschelde 0fc342c296 Merge pull request #10887 from Paulb23/fix_scrolling_up_jitter
Fixed jitter when scrolling up
2017-09-02 16:45:20 +02:00
Poommetee Ketson 459f526119 Fix typos 'a' and 'an' 2017-09-02 21:19:06 +07:00
Juan Linietsky b4efb832a7 Made triplanar local space by default, world space optionally, closes #10159 2017-09-02 09:57:08 -03:00