Age | Commit message (Collapse) | Author |
|
Fix crash in editor when setting `SubViewport.size` to zero
|
|
`Viewport::_set_size` now verifies, that the minimum size is at least 2x2.
Also fix `RendererViewport::viewport_set_size` fail condition.
|
|
|
|
|
|
Use min_size/max_size to limit window size and position while popup center
|
|
Some code simplifications
|
|
1. `number_width` isn't used later
2. `return_type` is used only once
3. AudioServer::get_singleton()->get_channel_count() always returns a channel_count of 1 or larger
4. negative `aa->backward` conditional
5. `current_canvas` == `find_world_2d()->get_canvas()`
6. identical if `render_shadows`
|
|
center
|
|
SubViewports don't have a cached mouse position available.
This PR calculates the mouse position from the screen position of
the mouse cursor.
|
|
Fix mouse/drag/touch InputEvents having no device id
|
|
Some internally created emulated/instantiated events didn't have a
device id. This PR sets for these cases a device id.
Also rename `DEVICE_ID_TOUCH_MOUSE` to the more generic
`DEVICE_ID_EMULATION`.
|
|
Touch and Drag events are now stopped by MOUSE_FILTER_STOP
|
|
Fix propagation order for 2D physics picking events
|
|
This patch adds a viewport-configuration-option for sorting
physics-picking events by the Z-Index and the scene tree position
of the collision objects.
|
|
|
|
This function is only relevant for `Window`. So this PR moves
the functionality to the `Window`-class.
|
|
Simplify Viewport::_set_size
|
|
`Viewport.to_screen_rect` is used only in a single location to compare it
to `Rect2i()`.
When called from `SubViewport`, `to_screen_rect` is always equal to `Rect2i()`.
When called from `Window`, `to_screen_rect` is always different from `Rect2i()`.
So the comparison `to_screen_rect != Rect2i()` can be replaced by
`Object::cast_to<Window>(this)`.
This allows the removal of `Viewport.to_screen_rect` and the simplification of
`Viewport::_set_size`.
|
|
toplevel was 3.x
top_level is 4.x
|
|
|
|
|
|
Fix stretch transform when resizing SubViewports
|
|
Fix execution of physics picking events at unexpected times
|
|
Finally do the childs -> children rename too.
|
|
Move calculation of stretch transform from outside to inside
of `Viewport::_set_size` function.
|
|
Remove some unused signals
|
|
Use enum instead of int in virtual methods return type
|
|
Prohibit inconsistent size state for SubViewport
|
|
Prohibit size changes of SubViewports with parent SubViewportContainers that have stretch mode enabled.
|
|
|
|
Rework how current Camera2D is determined
|
|
Part of #37604.
|
|
|
|
Calculate window input event transform only on window change
|
|
Fix event propagation to child after set_as_toplevel
|
|
[NET] Refactor TLS configuration.
|
|
Hide `clip_children` for some non-drawn CanvasItems
|
|
|
|
You still need to select another node to see the tooltip updated first,
but you no longer need to save and reopen the scene to view the updated
tooltip.
|
|
Use a TLSOptions configuration object which is created via static
functions.
- "TLSOptions.client": uses the standard CA and common name verification.
- "TLSOptions.client_unsafe": uses optional CA verification (i.e. if specified)
- "TLSOptions.server": is the standard server configuration (chain + key)
This will allow us to expand the TLS configuration options to include
e.g. mutual authentication without bloating the classes that uses
StreamPeerTLS and PacketPeerDTLS as underlying peers.
|
|
Fix some small bugs in the `Window` node
|
|
|
|
Fix event-content and mouse-signals with 3D-capture-on-drag
|
|
Fix position of Tooltips
|
|
|
|
CanvasItem::get_screen_transform returns a transform from the CanvasItem
to the coordinate system, where a Popup - created as a child of the
CanvasItem - should be opened.
get_screen_transform makes some simplifications, that work well, when used
in the editor, but not in general cases.
Since Popups like Tooltips are now used more commonly in projects,
it becomes necessary to correct these simplifications.
This solution introduces Viewport::get_popup_base_transform, which makes
the necessary calculations.
|
|
|
|
Rearrange `editor/naming/*` project settings
|
|
Update instances of scenes which have been reimported.
|
|
|