Commit Graph

4995 Commits

Author SHA1 Message Date
Rémi Verschelde 9f6eb3882c
Merge pull request #29182 from clayjohn/radiance_map
Fix radiance map settings
2019-05-27 17:33:45 +02:00
Ignacio Etcheverry d426dcabf8 Fix GetTypeInfo error due to missing include 2019-05-27 17:33:25 +02:00
Rémi Verschelde 4c77332e32
Merge pull request #29118 from JFonS/improve_navmesh_generation
Various improvements to NavigationMesh generation
2019-05-27 17:27:14 +02:00
Rémi Verschelde ec5be4ee68
Merge pull request #29223 from Jummit/add-get-camera-rid
Add get_camera_rid method to Camera
2019-05-27 17:11:31 +02:00
Ibrahn Sahir e975d9dcdb Fix uninitialised member variable 'meta_hovering' in RichTextLabel 2019-05-27 15:14:48 +01:00
Jummit ce2c45bde7 add get_camera_rid method 2019-05-27 16:05:27 +02:00
Rémi Verschelde d4e26fd588
Merge pull request #29172 from KoBeWi/path_deoverflowing
Don't allow PathFollow offset outside bounds
2019-05-27 12:09:17 +02:00
Rémi Verschelde 89b5025adc
Merge pull request #29176 from Calinou/tweak-particle-animation-warning
Tweak the particle animation node configuration warning message
2019-05-27 12:04:32 +02:00
Tomasz Chabora 90ea9dfede Fix TextEdit blocking scroll without scrollbar 2019-05-26 20:51:08 +02:00
Hugo Locurcio eb0cced3c0
Improve SSAO performance and quality
This decreases the number of samples significantly, leading to a
notable performance increase with only a very slight loss in
visual quality.

This also tweaks the default SSAO settings to use 3×3 blurring,
which makes noise patterns much less visible.
2019-05-26 12:01:01 +02:00
clayjohn 4c55a909ad fix radiance map settings 2019-05-25 18:57:32 -07:00
Hugo Locurcio 33fd5538d0
Tweak the particle animation node configuration warning message 2019-05-25 19:59:17 +02:00
Chaosus e5f5a71d27 Fix "Index out of size" TextEdit's spam to output 2019-05-25 20:57:32 +03:00
Tomasz Chabora f3c5db662d Don't allow PathFollow offset outside bounds 2019-05-25 18:27:22 +02:00
Rémi Verschelde 25d2ee677f
Merge pull request #29152 from nekomatata/fix-node-rename-tool-script
Fixed scene tree update after changing node name in tool script
2019-05-24 22:41:37 +02:00
Rémi Verschelde 71c784f796
Merge pull request #29078 from KoBeWi/scroll_stuff
Improvements to scroll handling
2019-05-24 19:56:15 +02:00
Rémi Verschelde 01c41c782b
Merge pull request #28796 from clayjohn/GLES2-optimization
GLES2: Allow Viewports to render directly to screen
2019-05-24 17:31:44 +02:00
Rémi Verschelde f173d242a2
Merge pull request #28811 from iwek7/editor_remove_spaces_to_closes_indention
Change rules of indenting for spaces
2019-05-24 16:21:04 +02:00
Rémi Verschelde f279837f3e
Merge pull request #29067 from KoBeWi/spin_edit
Pass mouse events to SpinBox from its LineEdit
2019-05-24 15:51:03 +02:00
Rémi Verschelde d1b4b62eb5
Merge pull request #29133 from KoBeWi/ninja_modulate
Don't modulate canvas on invisible color change
2019-05-24 15:45:24 +02:00
Rémi Verschelde 8689af6238
Merge pull request #29060 from volzhs/toggled-group
Refactor BaseButton event handling
2019-05-24 15:44:35 +02:00
PouleyKetchoupp 3f174c86d0 Fixed scene tree update after changing node name in tool script 2019-05-24 15:27:22 +02:00
Tomasz Chabora 01491aaf32 Improvements to scroll handling 2019-05-24 14:56:39 +02:00
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
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
Rémi Verschelde 2b1c3878f9
Merge pull request #29031 from BastiaanOlij/alpha_shadow
Implement shadow to opacity
2019-05-23 13:37:54 +02:00
jfons 1add4c15ab Various improvements to NavigationMesh generation
* Expose EditorNavigationMeshGenerator as an engine singleton so users
  can generate navmesehes from `tool` scripts.

* Add support for generating navmeshes from static colliders. All
  collision shapes are supported except for Plane (since Plane is an
  infinite collider and navmeshes need to have finite geometry).

* When using static colliders as a geometry source, a layer mask can be
  specified to ignore certain colliders.

* Don't rely on global transform. It still should give the exact same
  results but allows for building navmeshes on nodes that are not in the
  tree (useful in `tool` scripts).

* Update navigation gizmos after every new bake.

This work has been kindly sponsored by IMVU.
2019-05-23 08:37:58 +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
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
Ibrahn Sahir d8a5fcd3d1 Initialize readonly/editable in LineEdit and TextEdit controls 2019-05-21 21:50:02 +01: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
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 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
Tomasz Chabora 2d84ec5468 Pass mouse events to SpinBox from its LineEdit 2019-05-21 14:49:53 +02:00
Bastiaan Olij 3ea778e66e Implement shadow to opacity 2019-05-21 20:07:46 +10:00
Chaosus 5648924eef Expression node for visual shaders 2019-05-21 12:11:41 +03: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
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
Rémi Verschelde 63e7d2db08
Merge pull request #28218 from KoBeWi/b00km4rk5
Add bookmarks for easier code navigation
2019-05-20 22:39:19 +02:00
Rémi Verschelde fdea3d48b0
Merge pull request #26809 from KoBeWi/undo_set_text_like_a_boss
Allow to undo TextEdit.set_text
2019-05-20 22:00:39 +02:00
Rémi Verschelde 79cc95c6a7
Merge pull request #27559 from groud/anchor_mode
Improve the anchors and margin workflow
2019-05-20 17:44:56 +02:00
Rémi Verschelde 6920c82742 Style: Fix issues with clang-format 8.0 2019-05-20 13:51:51 +02:00
Guilherme Felipe 4de6c94eb0 [StateMachine] Fix error message for travel method 2019-05-19 23:43:26 -03:00
Rémi Verschelde a940b4cf64
Merge pull request #28997 from akien-mga/codespell
Fix typos with codespell
2019-05-19 22:04:14 +02:00
Rémi Verschelde e0574e1d98 Fix typos with codespell
Using codespell 1.15.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-05-19 13:10:35 +02:00
Chaosus 719a9a9c1c Added Fresnel and OneMinus to visual shaders 2019-05-19 13:44:30 +03:00
Max Hilbrunner ee5ba3e097
Merge pull request #28366 from iwek7/feature/issue28355/showSpacesInEditor
Add feature to show spaces in code editor
2019-05-17 20:38:40 +02:00
James Buck 5f5507cc62 Update Control margins when size is overridden by change to minsize 2019-05-16 21:56:17 -05:00
Paulb23 a8a0392c12 Fix text_edit drawing incorrect chars when syntax highlighting enabled 2019-05-16 22:32:06 +01:00
Tomasz Chabora 3bc0445e05 Allow to undo TextEdit.set_text 2019-05-16 23:05:17 +02:00
Michael Alexsander Silva Dias be8dc97be7 Fix leftover connection to the "Open" signal in FileSystemDock
Fixes #28903.
2019-05-15 11:25:52 -03:00
Ranoller 7a8e4f64b8 Fix tilemap displaced textures and shapes with origin point BOTTOM_LEFT and CENTER and other casuistry
This commit fix https://github.com/godotengine/godot/issues/22989 fixing displaced textures and not coincident shapes in tilemap. Fix too: https://github.com/godotengine/godot/issues/15249, https://github.com/godotengine/godot/issues/28206, https://github.com/godotengine/godot/issues/28610 and probably others
2019-05-15 04:14:27 +02:00
Michael Alexsander Silva Dias 15cda53d80
Merge pull request #28583 from theoniko/show-long-name-variables-correctly
Fix First Ctrl+R and Ctrl+F not showing long name variables correctly
2019-05-14 21:53:36 +00:00
clayjohn 65c211d303 Implement ability to render viewports directly to screen 2019-05-13 15:20:15 -07:00
Gilles Roudiere e875f05c3b Improve the anchors and margin workflow 2019-05-13 18:55:31 +02:00
Rémi Verschelde 868ee3ea10
Merge pull request #28761 from aqnuep/texture_resource_reload_fix
Fix texture resource reload bug
2019-05-13 17:20:42 +02:00
Rémi Verschelde 647021e864
Merge pull request #28326 from BastiaanOlij/center_heightmap
Center shape according to logic Bullet applies
2019-05-13 12:58:00 +02:00
miwanczuk cbc68a3e04 Change rules of indenting for spaces
Now indentations and deindentations of spaces attemt to align text to
closest full indent level. It works with tab/tab+shift (both with
selection and no selection) as well as backspace. Also fixes bug where
selection and cursor position were mispaced after (un)indenting selected
text.
2019-05-11 10:30:40 +02:00
Rémi Verschelde fea0c8858e
Merge pull request #28770 from volzhs/fix-scroll-back-top
Fix scroll back top
2019-05-11 09:44:11 +02:00
Bojidar Marinov 68bee3d9a2
Allow or_greater for most properties of NavMesh
Closes #28624
2019-05-10 18:05:17 +03:00
JFonS 9e97bac0cf Fixes to ClippedCamera
This work has been kindly sponsored by IMVU.
2019-05-10 10:35:15 +02:00
Aaron Franke 702b539405
Change "ID" to lowercase "id"
Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
2019-05-09 06:25:32 -04:00
volzhs 68c3728b47 Revert "Merge pull request #26053 from qarmin/back_scroll_to_start"
This reverts commit b5deb1dc72, reversing
changes made to 2cc8848c3c.

This change causes unwanted regression.
It's too risky to have scroll back to top in ItemList.clear()
2019-05-09 03:51:08 +09:00
Daniel Rakos e34eb5c26c Fix texture resource reload bug
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:

First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).

Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.

To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.
2019-05-08 17:22:40 +02:00
Bastiaan Olij e4dea0595a Add transform support to deal with Bullets centering of shapes 2019-05-07 22:43:10 +10:00
Bastiaan Olij 4bb0df7060 Center shape according to logic Bullet applies 2019-05-07 20:44:09 +10:00
megalike ed37912e66 Support Mac OS hotkeys in line_edit 2019-05-06 22:59:34 +03:00
Rémi Verschelde 2a8cb46c8e
Merge pull request #28516 from Chaosus/fix_vs_mix_title
Renames captions of Scalar/VectorInterp in Visual Shaders
2019-05-06 17:34:15 +02:00
Rémi Verschelde 7b7a664a97
Merge pull request #28709 from YeldhamDev/tabcontainer_locale_update
Fix 'TabContainer' not updating its tab titles when locale is changed
2019-05-06 10:53:22 +02:00
Rémi Verschelde 563d4b0e7f
Merge pull request #28696 from raphael10241024/debug_fix
fix CollisonShape changing shape cause crash when not in a tree
2019-05-06 10:42:56 +02:00
Rémi Verschelde 1a3a0e3d95
Merge pull request #28679 from megalike/fix_mac_os_delete_char_hotkeys
Support Mac OS default delete char hotkeys
2019-05-06 10:17:22 +02:00
Rémi Verschelde 9123db748e
Merge pull request #28330 from BastiaanOlij/improve_multimesh
Added set_as_bulk_array, fixed transform2D saving and documentation
2019-05-06 09:57:48 +02:00
Michael Alexsander Silva Dias a242bf464a Fix 'TabContainer' not updating its tab titles when locale is changed 2019-05-06 01:59:34 -03:00
Tomasz Chabora 0bfcf8bc2f Add bookmarks for easier code navigation 2019-05-05 18:57:53 +02:00
yakun.zhang 2206c5e9c0 fix CollisonShape changing shape cause crash when not in a tree 2019-05-05 13:30:58 +08:00
Colin Redman 359d7f178c Fix ParallaxBackground breaking when moving it out the scene tree 2019-05-04 17:09:33 -07:00
megalike c6310e9a7e Support Mac OS default delete char hotkeys 2019-05-04 17:15:32 +03:00
Michael Alexsander Silva Dias 37f4d51a75 Make 'TabContainer' update when icon/title is changed
Fixes #28655.
2019-05-03 14:55:32 -03:00
Rémi Verschelde 7b64a24eb3
Merge pull request #28548 from YeldhamDev/check_button_disabled_icon
Add "disabled" icon for 'CheckButton'
2019-05-03 14:55:32 +02:00
qarmin 4270403724 Fix crash when trying to set fallback or next pass with one of parent 2019-05-03 13:39:46 +02:00
Rémi Verschelde 913620a9b8
Merge pull request #28640 from bojidar-bg/17885-navmesh-entry-broken
Fix navmesh not finding optimal paths
2019-05-03 12:20:39 +02:00
Bojidar Marinov f1b7b74d65
Fix navmesh not finding optimal paths
Addresses part of #17885
2019-05-03 11:13:03 +03:00
Rémi Verschelde d962820453
Merge pull request #28620 from megalike/fix_mac_os_move_cursor
Fix Mac OS move cursor behaviour
2019-05-03 09:51:57 +02:00
Rémi Verschelde f1e39e1fc8
Merge pull request #28636 from bojidar-bg/d2426-panel-styles
Remove unused panelf and panelnc styles
2019-05-03 09:40:11 +02:00
Bojidar Marinov 3d47dad2b1
Remove unused `panelf` and `panelnc` styles
Fixes godotengine/godot-docs#2426
2019-05-03 09:44:46 +03:00
megalike 39398f173e Fix Mac OS move cursor behaviour 2019-05-02 21:13:41 +03:00
Michael Alexsander Silva Dias acadfe0a49 Add "disabled" icon for 'CheckButton' 2019-05-02 13:39:56 -03:00
Jared e03f9ead21 Do precision comparison to prevent the creation of keyframes with a time that already exists. 2019-05-02 19:14:36 +03:00
Rémi Verschelde 262924296b
Merge pull request #27415 from aqnuep/kinematicbody_fixes
KinematicBody performance and quality improvements
2019-05-02 18:03:58 +02:00
Michael Alexsander Silva Dias d6489374e7 Fix regression in 'PopupMenu' when icons have different values for width and height 2019-05-02 11:40:13 -03:00