aboutsummaryrefslogtreecommitdiff
path: root/scene/main
Commit message (Collapse)AuthorAgeFilesLines
* Add missing NULL checks for add_child_below_nodeMarcelo Fernandez2018-06-191-0/+4
|
* Fix regression with cursor shapeGuilherme Felipe2018-06-071-1/+1
|
* Entirely new (and much improved) animation editor.Juan Linietsky2018-06-072-5/+48
|
* Add option to disable automatic multiplayer pollFabio Alessandrelli2018-06-032-1/+18
| | | | | | | | Automatic poll from SceneTree is enabled by default. This allows for polling (and thus RPCs/RSETs) manually in other loops (e.g. physics, thread, specific step) and for proper mutex protecion when accessing the multiplayer API from threads (e.g. for sending larger files in chunks).
* Refactor RPCMode enum and checksFabio Alessandrelli2018-05-292-138/+12
|
* Revert "RPCMode refactor, more sync modes"Max Hilbrunner2018-05-292-12/+138
|
* Refactor RPCMode enum and checksFabio Alessandrelli2018-05-262-138/+12
|
* Revert #14753, as it is buggy and no longer necessary.Webster Sheets2018-05-241-1/+1
|
* Merge pull request #18928 from BastiaanOlij/fix_viewport_flagsRémi Verschelde2018-05-162-6/+9
|\ | | | | Store flags so it isn't lost when viewport isn't setup yet
| * Store flags so it isn't lost when viewport isn't setup yetBastiaan Olij2018-05-162-6/+9
| |
* | -New inspector.Juan Linietsky2018-05-153-1/+5
| | | | | | | | | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* | Merge pull request #18709 from Faless/multiplayer_docsMax Hilbrunner2018-05-094-54/+54
|\ \ | | | | | | Rename multiplayer_api to multiplayer, add docs
| * | Rename multiplayer_api to just multiplayer.Fabio Alessandrelli2018-05-084-54/+54
| |/ | | | | | | Only the class name retain the MultiplayerAPI name
* | Merge pull request #15119 from poke1024/visible-subwindowsJuan Linietsky2018-05-082-5/+54
|\ \ | | | | | | More efficient subwindow handling
| * | More efficient subwindow handlingBernhard Liebl2017-12-282-5/+54
| | |
* | | Merge pull request #15074 from ↵Juan Linietsky2018-05-081-1/+1
|\ \ \ | |_|/ |/| | | | | | | | PJB3005/17-12-26-remove_gui_focus_on_visibility_loss Hiding a Control now fires NOTIFICATION_FOCUS_EXIT.
| * | Hiding a control now fires NOTIFICATION_FOCUS_EXIT.PJB30052017-12-261-1/+1
| | | | | | | | | | | | It always removed the focus from the control, but this happened without firing the relevant notification.
* | | Fix double free for drag preview control in viewportGeequlim2018-05-081-3/+1
| | |
* | | Merge pull request #17295 from eon-s/instance-placeholderJuan Linietsky2018-05-072-6/+19
|\ \ \ | | | | | | | | Make InstancePlaceholder more flexible by allowing to instance without removing it.
| * | | Added create_instanceeon-s2018-03-052-6/+19
| | | | | | | | | | | | | | | | | | | | | | | | Allows to create an instance from an `InstancePlaceholder` without removing the placeholder. Deprecates `replace_by_instance`.
* | | | Merge pull request #15911 from Zephilinox/ready_signalJuan Linietsky2018-05-071-1/+2
|\ \ \ \ | | | | | | | | | | Add ready signal to Node
| * | | | Add ready signal to NodeZephilinox2018-01-201-1/+2
| | | | | | | | | | | | | | | | | | | | Closes #15889
* | | | | Merge pull request #18524 from BastiaanOlij/keep_3d_linearJuan Linietsky2018-05-072-0/+19
|\ \ \ \ \ | | | | | | | | | | | | Added option to viewport to keep linear color
| * | | | | Added option to viewport to keep linear colorBastiaan Olij2018-05-062-0/+19
| | | | | |
* | | | | | Merge pull request #18454 from KidRigger/working_timerMax Hilbrunner2018-05-072-3/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | | Allows setting the Timer wait_time in start method.
| * | | | | Allows setting the Timer wait_time in start method.Anish2018-04-272-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows shortening the two line method of Timer.set_wait_time followed by Timer.start set wait_time as a parameter to Timer.start. Also modifies the class documentation. Fixes: #18107
* | | | | | Merge pull request #18514 from neikeq/api-hash-fixesRémi Verschelde2018-05-034-16/+12
|\ \ \ \ \ \ | | | | | | | | | | | | | | API hash fixes
| * | | | | | Fix binding some core API methods only in tools buildsIgnacio Etcheverry2018-04-294-16/+12
| |/ / / / /
* | | | | | Merge pull request #18451 from volzhs/node-nameRémi Verschelde2018-05-022-1/+21
|\ \ \ \ \ \ | | | | | | | | | | | | | | Check invalid node name
| * | | | | | Check invalid node namevolzhs2018-05-032-1/+21
| |/ / / / /
* / / / / / Implement universal translation of touch to mousePedro J. Estébanez2018-04-301-0/+8
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
* | | | | Implement Input.set_default_cursor_shape to change the default shapeGuilherme Felipe2018-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | Closes #18043
* | | | | Made print_tree_pretty() function which displays scene tree graphicallyGeoffrey2018-04-092-4/+20
| | | | |
* | | | | Merge pull request #17227 from Faless/multiplayer_apiJuan Linietsky2018-04-084-672/+85
|\ \ \ \ \ | | | | | | | | | | | | [RFC] MultiplayerAPI refactor
| * | | | | Use MultiplayerAPI class for high level networkingFabio Alessandrelli2018-03-034-672/+85
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Remove networking related logic from Node and SceneTree. SceneTree now simply relay all networking related stuff to MultiplayerAPI for compatibility
* | | | | Merge pull request #17382 from bojidar-bg/13971-path-array-unsavedJuan Linietsky2018-04-081-14/+2
|\ \ \ \ \ | | | | | | | | | | | | Duplicate Arrays and Dictionaries when instancing scene in editor
| * | | | | Duplicate Arrays and Dictionaries when instancing scene in editorBojidar Marinov2018-03-131-14/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add deep (=false) parameter to Array.duplicate and Dictionary.duplicate Fixes #13971
* | | | | | Removed strange custom world2d in CanvasLayer, been there since always and ↵Juan Linietsky2018-04-072-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not sure why. Fixes #17524, fixes #17523.
* | | | | | Improve popup menus usabilityPedro J. Estébanez2018-04-072-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that popups were intended to "grab" the mouse click that triggered them, but their intent was being lost. This commit does the necessary changes to let it happen and updates items that were trying to get advantage of it, because the semantics of `Control::grab_click_focus()` have changed a bit. Namely, it must be called **before** showing the modal. This allows to popup a menu and activate an item in it in a single click-point-release cycle, instead of having to click once to open the menu and once more to pick an item. This ability is extended even to context menus activated with the RMB (or any other mouse button, for that matter). The editor benefits from this in the context menu of the tree dock, which has been patched to opt-in for this feature. This improves UX a bit by saving unnecessary clicks. From now on, `PopupMenu` always grabs the click and also invalidates the first button release unless the mouse has moved (that's what `set_invalidate_click_until_motion()` was doing and now it's removed), so there is no longer the need of doing both things at every point a pop-up menu is shown.
* | | | | | Merge pull request #17321 from LinkDoyle/issue_16350Rémi Verschelde2018-03-231-1/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix switching WindowDialog types leaves garbage buttons
| * | | | | | Fix switching WindowDialog types leaves garbage buttonsLink2018-03-071-1/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can distinguish between node-specific children and custom children by `child->is_owned_by_parent()`. Fixes: #16350
* | | | | | Fix oversampled font artifacts after resizeRuslan Mustakov2018-03-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Font update after resize relies on the viewport size which was updated after the font was already refreshed, which resulted in artifacts when it was rendered into the actual/new viewport size. Fixes #15173.
* | | | | | Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli2018-03-161-0/+3
|\ \ \ \ \ \ | | | | | | | | | | | | | | GUI elements ui_action usage, improvements
| * | | | | | Properly set input as handled when closing modalFabio Alessandrelli2018-02-231-0/+3
| | | | | | |
* | | | | | | Merge pull request #17264 from poke1024/fix-gesture-key-event-acceptedHein-Pieter van Braam2018-03-151-0/+2
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | Fix gesture events being blocked
| * | | | | | Fix gesture events being blockedBernhard Liebl2018-03-041-0/+2
| | |/ / / / | |/| | | |
* / | | | | FIX Windows enter/exit mouse notificationsRanoller2018-03-031-0/+2
|/ / / / / | | | | | | | | | | Fix to this issue #17202
* | | | | Viewport: Fix missing tooltips w/ disabled physics object pickingRémi Verschelde2018-03-011-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this option seemed to be the sole responsible for enabling physics processing in Viewport, while several other features like tooltips and debugging collision hints rely on it. All this logic is moved to internal processing (it's incorrect to let it be affected by users disabling physics/idle processing), and disabling physics object picking no longer affects the internal physics processing. Fixes #17001.
* | | | | Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-02-281-0/+1
| | | | |
* | | | | Refactor version macros and fix related bugsRémi Verschelde2018-02-231-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous logic with VERSION_MKSTRING was a bit unwieldy, so there were several places hardcoding their own variant of the version string, potentially with bugs (e.g. forgetting the patch number when defined). The new logic defines: - VERSION_BRANCH, the main 'major.minor' version (e.g. 3.1) - VERSION_NUMBER, which can be 'major.minor' or 'major.minor.patch', depending on whether the latter is defined (e.g. 3.1.4) - VERSION_FULL_CONFIG, which contains the version status (e.g. stable) and the module-specific suffix (e.g. mono) - VERSION_FULL_BUILD, same as above but with build/reference name (e.g. official, custom_build, mageia, etc.) Note: Slight change here, as the previous format had the build name *before* the module-specific suffix; now it's after - VERSION_FULL_NAME, same as before, so VERSION_FULL_BUILD prefixed with "Godot v" for readability Bugs fixed thanks to that: - Export templates version matching now properly takes VERSION_PATCH into account by relying on VERSION_FULL_CONFIG. - ClassDB hash no longer takes the build name into account, but limits itself to VERSION_FULL_CONFIG (build name is cosmetic, not relevant for the API hash). - Docs XML no longer hardcode the VERSION_STATUS, this was annoying. - Small cleanup in Windows .rc file thanks to new macros.