summaryrefslogtreecommitdiff
path: root/scene/main
AgeCommit message (Collapse)Author
2019-01-10Rewrote rename logic to be less buggy and more efficient, fixes #23803 and ↵Juan Linietsky
probably many recent bugs using GraphEdit
2019-01-10Revert "Node: make _generate_serial_child_name manipulate numbers as String"Rémi Verschelde
This reverts commits 1025e3ecea67b90232cfdc9590a7ee8887efdcc8 and 799ed2b98984414fd3b7b667c5e3e5d2e6d35a66.
2019-01-08Fix strip out spaces while generating serial number for node namevolzhs
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-19fix near infinite loop when no previous mouse positionArjen van Staalduinen
Added physics_has_last_mousepos to better deal with situations where there is no last_mousepos
2018-12-14Fix touch release event on _gui_inputKonrad Nowakowski
2018-12-11Merge pull request #23923 from bruvzg/ime_gdscriptRémi Verschelde
Changes IME to make it possible to use it from gdscript/gdnative
2018-12-09Merge pull request #20609 from YeldhamDev/menu_hover_explicitRémi Verschelde
Make opening menus with the same parent on mouse focus explicit
2018-12-02Add missing validationsGuilherme Felipe
Add missing validations to prevent crash of multiple mouse buttons being pressed
2018-12-01Fix crash when multiple mouse buttons is pressed.Guilherme Felipe
2018-11-28Fixes crash, closes #24038Juan Linietsky
2018-11-28Improved the mouse focus system (mouse keeps focus on a control while ↵Juan Linietsky
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-23Changes IME input to use notification instead of callback, exposes IME ↵bruvzg
methods to gdscript/gdnative.
2018-11-21Node: make _generate_serial_child_name manipulate numbers as StringlupoDharkael
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-20Make opening menus with the same parent on mouse focus explicitMichael Alexsander Silva Dias
2018-11-19Properly handle multiple parent drag, fixes #19460Juan Linietsky
2018-11-18Massive speed up on deleting nodes, fixes #18673Juan Linietsky
Also makes the editor exit faster
2018-11-16Do not allow controls in ignore mouse to get focus via their children, fixes ↵Juan Linietsky
#17955
2018-11-16Merge pull request #23734 from RandomShaper/fix-canvas-layer-out-of-treeRémi Verschelde
Fix CanvasLayer trying to re-stack while out of tree
2018-11-16Fix CanvasLayer trying to re-stack while out of treePedro J. Estébanez
Fixes #23718.
2018-11-15-Send mouse motion events again to CollisionObjects (Area/Body) if they ↵Juan Linietsky
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-14Merge pull request #23564 from endragor/fix-remove-child-orderingJuan Linietsky
Notify node's moved children after sibling removed
2018-11-13Add a limit of previously known last element to timer timeout traversal in ↵Juan Linietsky
SceneTree, fixes #15559
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-11-07Merge pull request #21386 from RandomShaper/fix-picking-in-canvas-layersJuan Linietsky
Fix picking in CanvasLayer
2018-11-07Notify node's moved children after sibling removedRuslan Mustakov
Fixes #16213.
2018-11-01Merge pull request #21962 from YeldhamDev/switch_hover_submenuJuan Linietsky
Fix MenuButton hover switching not happening with submenus open
2018-11-01Merge pull request #23411 from RandomShaper/fix-same-layer-not-deterministicRémi Verschelde
Fix canvas stacking not deterministic on same layer
2018-10-30Fix canvas stacking not deterministic on same layerPedro J. Estébanez
Fixes #22687.
2018-10-29Moved folding outside the resource files, now saved outside the project.Juan Linietsky
2018-10-25Merge pull request #23091 from aaronfranke/mingw-warningsRémi Verschelde
Fix some compile warnings for Windows from Linux
2018-10-25Merge pull request #22779 from Superwaitsum/LimitSettingsRémi Verschelde
Limit several project settings
2018-10-24Add some limits on the Editor SettingsSuperwaitsum
2018-10-19Fix compile warnings for Windows from LinuxAaron Franke
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-11Fixed error when duplicating a scene which has connectionDualMatrix
Fixed error when duplicating a scene which has connection
2018-10-03Merge pull request #22681 from akien-mga/fix-warningsRémi Verschelde
Fix warnings on release builds and some MSVC warnings
2018-10-03Fix warnings on release builds (not DEBUG_ENABLED)Rémi Verschelde
Fixes the following Clang 5 warnings: ``` modules/bmp/image_loader_bmp.cpp:46:60: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] modules/bmp/image_loader_bmp.cpp:48:61: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] drivers/png/image_loader_png.cpp:231:20: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare] scene/gui/graph_edit.cpp:1045:8: warning: comparison of constant 0 with expression of type 'bool' is always false [-Wtautological-constant-out-of-range-compare] core/class_db.cpp:812:13: warning: unused variable 'check' [-Wunused-variable] core/io/file_access_pack.cpp:172:11: warning: unused variable 'ver_rev' [-Wunused-variable] core/math/bsp_tree.cpp:195:13: warning: unused variable 'plane' [-Wunused-variable] core/math/bsp_tree.cpp:168:6: warning: unused variable 'plane_count' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:685:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:706:10: warning: unused variable 'ok' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:755:19: warning: unused variable 'var_type' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:1306:12: warning: unused variable 'err' [-Wunused-variable] modules/gdscript/gdscript_function.cpp:158:15: warning: unused function '_get_var_type' [-Wunused-function] modules/gdscript/gdscript_parser.cpp:750:20: warning: unused variable 'lv' [-Wunused-variable] modules/gdscript/gdscript_parser.cpp:59:15: warning: unused function '_find_function_name' [-Wunused-function] scene/main/node.cpp:2489:13: warning: unused function '_Node_debug_sn' [-Wunused-function] ```
2018-10-03Fixed error when duplicating node from editor.DualMatrix
Fixed error when duplicating node from editor.
2018-09-28SCons: Build thirdparty code in own env, disable warningsRémi Verschelde
Also remove unnecessary `Export('env')` in other SCsubs, Export should only be used when exporting *new* objects.
2018-09-27Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde
Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
2018-09-27Fix warnings about set but unused variables [-Wunused-but-set-variable]Rémi Verschelde
Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_canvas_gles2.cpp:814:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2270:11: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2673:22: warning: variable 'e' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:715:7: warning: variable 'no_cull' set but not used [-Wunused-but-set-variable] drivers/gles2/shader_gles2.cpp:693:14: warning: variable 'cc' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_canvas_gles3.cpp:1226:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:3039:10: warning: variable 'contrib' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:4504:32: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] editor/editor_inspector.cpp:272:9: warning: variable 'guide_color' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:1067:14: warning: variable 'alpha3' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:263:8: warning: variable 'script_bg_color' set but not used [-Wunused-but-set-variable] editor/plugins/collision_shape_2d_editor_plugin.cpp:326:11: warning: variable 'cpoint' set but not used [-Wunused-but-set-variable] editor/plugins/mesh_editor_plugin.cpp:72:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:471:12: warning: variable 'mpos' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:89:8: warning: variable 'basetype_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:90:8: warning: variable 'type_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:92:8: warning: variable 'string_color' set but not used [-Wunused-but-set-variable] modules/visual_script/visual_script_editor.cpp:2521:7: warning: variable 'seq_connect' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:580:12: warning: variable 'styles_count' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:584:12: warning: variable 'styles_offset' set but not used [-Wunused-but-set-variable] platform/osx/export/export.cpp:464:9: warning: variable 'zerr' set but not used [-Wunused-but-set-variable] scene/2d/tile_map.cpp:260:10: warning: variable 'tcenter' set but not used [-Wunused-but-set-variable] scene/3d/light.cpp:166:7: warning: variable 'editor_ok' set but not used [-Wunused-but-set-variable] scene/3d/navigation.cpp:566:11: warning: variable 'closest_navmesh' set but not used [-Wunused-but-set-variable] scene/gui/rich_text_label.cpp:869:8: warning: variable 'size' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:705:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:706:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:726:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:727:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/resources/material.cpp:430:7: warning: variable 'using_world' set but not used [-Wunused-but-set-variable] servers/visual/shader_language.cpp:2026:7: warning: variable 'all_const' set but not used [-Wunused-but-set-variable] servers/visual/visual_server_scene.cpp:1383:28: warning: variable 'z_max_cam' set but not used [-Wunused-but-set-variable] ``` Also fixes two [-Wunused-value] warnings: ``` scene/gui/text_edit.cpp:4405:20: warning: statement has no effect [-Wunused-value] servers/visual/visual_server_scene.cpp:905:48: warning: value computed is not used [-Wunused-value] ``` Some of those are bugs and need further work, they are identified with `// FIXME` comments.
2018-09-23Merge pull request #22342 from DualMatrix/duplicate_no_funRémi Verschelde
Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled
2018-09-22Merge pull request #22115 from akerudesu/find-parentMax Hilbrunner
Added find_parent method to node class
2018-09-22Fixed duplicating nodes not attaching script in-game with Sync Scene Changes ↵DualMatrix
enabled Fixed duplicating nodes not attaching script in-game with Sync Scene Changes enabled.
2018-09-20Merge pull request #22071 from DualMatrix/preserve_groupRémi Verschelde
Made duplicate_and_reown preserve groups
2018-09-15Added find_parent method to node classUnknown
2018-09-14Expose "get_modal_stack_top()" to GDScriptMichael Alexsander Silva Dias
2018-09-14Made duplicate_and_reown preserve groupsDualMatrix
2018-09-12Fix non chunked HTTP reading till eof.Fabio Alessandrelli
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.