Juan Linietsky
7f63b0e8cd
Added a workaround to avoid crashes due to how TileSet editor works, fixes #23672
...
Also fixed a few uninitialized memory variables.
2019-02-22 17:42:29 -03:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
Marcelo Fernandez
761caac0b2
Fix possible crash with an invalid last_mouse_focus pointer
2019-02-14 22:16:56 -03:00
Rémi Verschelde
5fc86026ca
Fix typos with codespell
...
Using codespell 1.14.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
doubleclick
lod
nd
numer
que
te
unselect
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-02-13 09:23:29 +01:00
Rémi Verschelde
c5dcbeb160
Scene: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `scene/2d/navigation2d.h` -> `navigation_2d.h`
- `scene/2d/screen_button.h` -> `touch_screen_button.h`
- `scene/3d/scenario_fx.h` -> `world_environment.h`
- `scene/audio/audio_player.h` -> `audio_stream_player.h`
- `scene/resources/bit_mask.h` -> `bit_map.h`
- `scene/resources/color_ramp.h` -> `gradient.h`
- `scene/resources/shape_line_2d.h` -> `line_shape_2d.h`
- `scene/resources/scene_format_text.h` -> `resource_format_text.h`
- `scene/resources/sky_box.h` -> `sky.h`
Dropped:
- `scene/resources/bounds.h`
2019-02-12 17:21:48 +01:00
Rémi Verschelde
3dd00e77b4
Merge pull request #25524 from Calinou/fix-font-oversampling-warning
...
Fix a font oversampling warning being printed when it shouldn't
2019-02-08 11:52:45 +01:00
Hugo Locurcio
355d65aa8d
Fix a font oversampling warning being printed when it shouldn't
2019-01-31 19:49:10 +01:00
K. S. Ernest (iFire) Lee
b83c3827f3
Add check in folding to see if the nodepath exists to avoid message spam.
2019-01-30 20:19:44 -08:00
Juan Linietsky
c2f59de212
Warn of invalid pointer when converting object to RID, closes #19023
2019-01-26 15:41:26 -03:00
Juan Linietsky
b203f80dfc
Rewrite how font oversampling is updated more carefully, fixes #24338
2019-01-26 14:57:17 -03:00
Juan Linietsky
93d8f3cdd5
respect mouse mode when setting enter/exit notifications and signals, fixes #19785
2019-01-18 17:53:36 -03:00
Michael Alexsander Silva Dias
9c69d7f339
Appease some CppCheck warns for files in the "scene" directory
2019-01-16 12:59:18 -02:00
Juan Linietsky
91290f0ded
Added a flag to specify an exported node path must be supplied from scene root, fixes #24412
2019-01-14 15:46:56 -03:00
Rémi Verschelde
1ff170e67f
Redo serial name fixup from 799ed2b989
...
reduz wanted the original PR reverted due to issues, so this follow-up had to be too
(done in 8cb54182ad
). But he ended up adapting part of
the original PR in 27d7772381
without including this fix.
2019-01-11 23:02:57 +01:00
Juan Linietsky
27d7772381
Rewrote rename logic to be less buggy and more efficient, fixes #23803 and probably many recent bugs using GraphEdit
2019-01-10 18:58:16 -03:00
Rémi Verschelde
8cb54182ad
Revert "Node: make _generate_serial_child_name manipulate numbers as String"
...
This reverts commits 1025e3ecea
and 799ed2b989
.
2019-01-10 22:40:42 +01:00
volzhs
799ed2b989
Fix strip out spaces while generating serial number for node name
2019-01-08 22:37:45 +09:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
Arjen van Staalduinen
ef9313f415
fix near infinite loop when no previous mouse position
...
Added physics_has_last_mousepos to better deal with
situations where there is no last_mousepos
2018-12-19 13:35:41 +01:00
Konrad Nowakowski
7491e910f3
Fix touch release event on _gui_input
2018-12-14 18:28:11 +00:00
Rémi Verschelde
4c41e29c8e
Merge pull request #23923 from bruvzg/ime_gdscript
...
Changes IME to make it possible to use it from gdscript/gdnative
2018-12-11 18:00:48 +01:00
Rémi Verschelde
bf59b73250
Merge pull request #20609 from YeldhamDev/menu_hover_explicit
...
Make opening menus with the same parent on mouse focus explicit
2018-12-09 23:15:33 +01:00
Guilherme Felipe
26c1af4848
Add missing validations
...
Add missing validations to prevent crash of multiple mouse buttons being
pressed
2018-12-02 22:38:54 -02:00
Guilherme Felipe
ea6a5bb8fb
Fix crash when multiple mouse buttons is pressed.
2018-12-01 11:25:43 -02:00
Juan Linietsky
167eb269ec
Fixes crash, closes #24038
2018-11-28 13:10:23 -03:00
Juan Linietsky
39028cc161
Improved the mouse focus system (mouse keeps focus on a control while buttons are pressed). Fixes #19154 and likely many others.
...
WARNING: Test well in every OS, if mouse wheel events are not properly sent as pressed+unpressed pair, it will fail and break (and the OS needs to be fixed). Only tested on X11 so far.
2018-11-28 09:33:13 -03:00
bruvzg
4554c682e6
Changes IME input to use notification instead of callback, exposes IME methods to gdscript/gdnative.
2018-11-23 14:07:48 +02:00
lupoDharkael
1025e3ecea
Node: make _generate_serial_child_name manipulate numbers as String
...
The conversion from an String to int can overflow int and int64
so it is safer to manipulate strings when we try to find the next
available name for a Node.
2018-11-21 14:18:34 +01:00
Michael Alexsander Silva Dias
da7d3c5a58
Make opening menus with the same parent on mouse focus explicit
2018-11-20 20:37:45 -02:00
Juan Linietsky
55ded6b2de
Properly handle multiple parent drag, fixes #19460
2018-11-19 18:38:07 -03:00
Juan Linietsky
2d6b994e47
Massive speed up on deleting nodes, fixes #18673
...
Also makes the editor exit faster
2018-11-18 11:48:21 -03:00
Juan Linietsky
3331ececc4
Do not allow controls in ignore mouse to get focus via their children, fixes #17955
2018-11-16 13:47:21 -03:00
Rémi Verschelde
193324f354
Merge pull request #23734 from RandomShaper/fix-canvas-layer-out-of-tree
...
Fix CanvasLayer trying to re-stack while out of tree
2018-11-16 15:15:48 +01:00
Pedro J. Estébanez
5dac6ef486
Fix CanvasLayer trying to re-stack while out of tree
...
Fixes #23718 .
2018-11-16 01:01:17 +01:00
Juan Linietsky
80a90ca824
-Send mouse motion events again to CollisionObjects (Area/Body) if they move, even if mouse does not. Fixes #16536 (likely many others should check)
...
-Add ability for viewports to set input events as handled locally
2018-11-15 13:56:57 -03:00
Juan Linietsky
c5656b7468
Merge pull request #23564 from endragor/fix-remove-child-ordering
...
Notify node's moved children after sibling removed
2018-11-14 20:30:41 +01:00
Juan Linietsky
37c5aa1084
Add a limit of previously known last element to timer timeout traversal in SceneTree, fixes #15559
2018-11-13 20:11:22 -03:00
Juan Linietsky
f2e54057ae
-Moved EditorDefaultValue to ClassDB, made it core
...
-Removed one and zero hints for properties, replaced by default value
2018-11-08 11:30:59 -03:00
Juan Linietsky
daa1686772
Merge pull request #21386 from RandomShaper/fix-picking-in-canvas-layers
...
Fix picking in CanvasLayer
2018-11-07 17:51:27 -03:00
Ruslan Mustakov
3b02cd3e71
Notify node's moved children after sibling removed
...
Fixes #16213 .
2018-11-07 16:31:25 +07:00
Juan Linietsky
65e3ef705b
Merge pull request #21962 from YeldhamDev/switch_hover_submenu
...
Fix MenuButton hover switching not happening with submenus open
2018-11-01 17:01:51 -03:00
Rémi Verschelde
b573bf8547
Merge pull request #23411 from RandomShaper/fix-same-layer-not-deterministic
...
Fix canvas stacking not deterministic on same layer
2018-11-01 19:31:09 +01:00
Pedro J. Estébanez
cf8976de41
Fix canvas stacking not deterministic on same layer
...
Fixes #22687 .
2018-10-30 21:53:00 +01:00
Juan Linietsky
e647342140
Moved folding outside the resource files, now saved outside the project.
2018-10-29 16:37:09 -03:00
Rémi Verschelde
9de724f327
Merge pull request #23091 from aaronfranke/mingw-warnings
...
Fix some compile warnings for Windows from Linux
2018-10-25 15:09:11 +02:00
Rémi Verschelde
1169196f04
Merge pull request #22779 from Superwaitsum/LimitSettings
...
Limit several project settings
2018-10-25 11:38:06 +02:00
Superwaitsum
e5041ad0f5
Add some limits on the Editor Settings
2018-10-24 19:46:33 -05:00
Aaron Franke
dc2e73499a
Fix compile warnings for Windows from Linux
...
At least the ones I got when I compiled it using Mingw64 POSIX on Xubuntu 18.04. Plus use the Size2 of get_window_size() directly, rather than reconstructing it.
2018-10-19 09:11:14 -04:00
DualMatrix
6afedaa498
Fixed error when duplicating a scene which has connection
...
Fixed error when duplicating a scene which has connection
2018-10-11 01:30:12 +02:00
Rémi Verschelde
344a453bb8
Merge pull request #22681 from akien-mga/fix-warnings
...
Fix warnings on release builds and some MSVC warnings
2018-10-03 19:05:55 +02:00