summaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
AgeCommit message (Collapse)Author
2018-05-08Fix double free for drag preview control in viewportGeequlim
2018-05-06Added option to viewport to keep linear colorBastiaan Olij
2018-04-10Implement Input.set_default_cursor_shape to change the default shapeGuilherme Felipe
Closes #18043
2018-04-07Improve popup menus usabilityPedro J. Estébanez
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.
2018-03-16Merge pull request #16947 from Faless/ui_actionsFabio Alessandrelli
GUI elements ui_action usage, improvements
2018-03-04Fix gesture events being blockedBernhard Liebl
2018-03-01Viewport: Fix missing tooltips w/ disabled physics object pickingRémi Verschelde
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.
2018-02-28Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam
2018-02-23Properly set input as handled when closing modalFabio Alessandrelli
2018-01-18Remove obsolete Viewport _update_rect() codeRémi Verschelde
2018-01-12Bind many more properties to scriptsBojidar Marinov
Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
2018-01-05Force button release when window focuses out, fixes #15318 and likely many ↵Juan Linietsky
other issues.
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-01-01Merge pull request #14953 from poke1024/fix-toolbar-gestureNoshyaar
Hide tooltip on gesture input
2017-12-26Removed the InputEvent ID field, which was unused and can cause bugs.Juan Linietsky
2017-12-25Merge pull request #14899 from volzhs/render-quality-optionNoshyaar
Respect HDR option
2017-12-25Merge pull request #14753 from NathanWarden/mouse_button_fixNoshyaar
Fixed a bug where mouse button focus breaks when using multiple buttons at once.
2017-12-22Hide tooltip on gesture inputBernhard Liebl
2017-12-21-Make capture dependent on a cell size, not subdivision.Juan Linietsky
-Fixed a bug recently introduced when releasing mouse events and calling popups
2017-12-21Respect HDR optionvolzhs
2017-12-20properly send mouse released event when grabbing modal focus, fixes #14854Juan Linietsky
2017-12-19Should no longer crash after rebaking, may be a solution to #14795Juan Linietsky
Not sure if this is the same problem, as reported, please test.
2017-12-16Fixed a bug where mouse button focus breaks when using multiple buttons at once.Nathan Warden
2017-12-16Revert "Fix mouse button release not sent to gui_input if it's different ↵Juan Linietsky
from the button that gave focus"
2017-12-16Merge pull request #14484 from Zylann/fix_mouse_focus_button_releaseRémi Verschelde
Fix mouse button release not sent to gui_input if it's different from the button that gave focus
2017-12-15Fixes oversized tooltip labels (issue 14570)Bernhard Liebl
2017-12-10Merge pull request #13351 from poke1024/fix12451_2Rémi Verschelde
Make click on arrow properly open and close property editor modals
2017-12-10fix certain popup close clicks with popup buttonsBernhard Liebl
2017-12-10Fix mouse button release not sent to gui_input if it's different from the ↵Marc Gilleron
button that gave focus
2017-12-10Fix mouse position in viewportvolzhs
2017-12-07Added some clean up in camera/viewport management. Fixes #12279, Fixes #12774Juan Linietsky
2017-12-04-Implemented Proxy Textures (needed to solve the problem with ViewportTexture)Juan Linietsky
-Properly use hierarchy to initialize resources local to scene (solves problem of GUI in 3D)
2017-11-21Removed type_mask and fixed some variable nameAndreaCatania
2017-11-21Native pan and zoom for macOSBernhard Liebl
2017-10-20Merge pull request #12149 from endragor/check-input-handledRémi Verschelde
Check if input is handled before handling it
2017-10-19Fix Viewport clear mode is bool instead of int, fixes #12202Poommetee Ketson
2017-10-16Check if input is handled before handling itRuslan Mustakov
2017-09-30Renamed fixed_process to physics_processAndreaCatania
2017-09-20Rename pos to position in user facing methods and variablesletheed
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-13Fix enums bindingsMaxim Sheronov
Add missed bindings for enums Move some enums to class to have correct output of api.json
2017-09-08Fix serveral recent new clang-format errorsHein-Pieter van Braam
2017-09-07Restored auto snapping of controls to pixels, fixes #10847 and probably ↵Juan Linietsky
several more issues. Made it optional in the project settings but defaults to true.
2017-09-02Fix use of unitialized variablesHein-Pieter van Braam
The second in my quest to make Godot 3.x compile with -Werror on GCC7
2017-08-31Exposed new ClearMode function to Viewport clases, closes #9995Juan Linietsky
2017-08-27Dead code tells no talesRémi Verschelde
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-27Viewport: fix 'size' binding from Rect2 to Vector2Poommetee Ketson
2017-08-26-Massive clean up to gizmosJuan Linietsky
-Make sure handles are always visible (on top) -Fixed instanced scene selection (should work properly now) -Added interpolated camera -Customizable gizmo colors in editor settings
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/