summaryrefslogtreecommitdiff
path: root/scene/2d
AgeCommit message (Collapse)Author
2021-02-21Line2D::set_point_position Fail if passed index is out of boundskleonc
2021-02-19Merge pull request #46191 from reduz/refactor-process-modeRémi Verschelde
Refactor Process Mode
2021-02-19Merge pull request #44737 from KoBeWi/touch_shape_screen_centered_buttonRémi Verschelde
Fix shape_centered property in TouchScreenButton
2021-02-18Refactor Process Modereduz
Implements https://github.com/godotengine/godot-proposals/issues/1835#issuecomment-727186192 * PauseMode is now ProcessMode, containing the following states: ``` PROCESS_MODE_INHERIT, // same as parent node PROCESS_MODE_NORMAL, // process only if not paused PROCESS_MODE_PAUSE_ONLY, // process only if paused PROCESS_MODE_ALWAYS, // process always PROCESS_MODE_DISABLED, // never process ``` * NOTIFICATION_PAUSED and NOTIFICATION_UNPAUSED are received effectively when the node is paused and unpaused (not any longer when pause mode is set in SceneTree). * Renamed some nodes that used ProcessMode/process_mode to specify a callback type to ProcessCallback to avoid clashes.
2021-02-18Merge pull request #41644 from ↵Rémi Verschelde
Eoin-ONeill-Yokai/collision_2d_shape_visualization_fix CollisionShape2D 'Disabled' Visualization Correction
2021-02-18Modernize atomicsPedro J. Estébanez
- Based on C++11's `atomic` - Reworked `SafeRefCount` (based on the rewrite by @hpvb) - Replaced free atomic functions by the new `SafeNumeric<T>` - Replaced wrong cases of `volatile bool` by the new `SafeFlag` - Platform-specific implementations no longer needed Co-authored-by: Hein-Pieter van Braam-Stewart <hp@tmm.cx>
2021-02-18Merge pull request #46151 from ellenhp/fix_spatial_player_playRémi Verschelde
Fix a pop on play() in AudioStreamPlayer2D and 3D
2021-02-17Fix pops in play() of both spatial audio playersEllen Poe
2021-02-14Return setseek position if one exists in get_playback_position.Ellen Poe
2021-02-10Removed _change_notifyreduz
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
2021-02-10Make Servers truly Thread Safereduz
-Rendering server now uses a split RID allocate/initialize internally, this allows generating RIDs immediately but initialization to happen later on the proper thread (as rendering APIs generally requiere to call on the right thread). -RenderingServerWrapMT is no more, multithreading is done in RenderingServerDefault. -Some functions like texture or mesh creation, when renderer supports it, can register and return immediately (so no waiting for server API to flush, and saving staging and command buffer memory). -3D physics server changed to be made multithread friendly. -Added PhysicsServer3DWrapMT to use 3D physics server from multiple threads. -Disablet Bullet (too much effort to make multithread friendly, this needs to be fixed eventually).
2021-02-07Initialize class variables with default values in scene/ [1/2]Rafał Mikrut
2021-02-03Merge pull request #45496 from Chaosus/fix_particlesRémi Verschelde
Fix particles not properly updated by their lifetime
2021-02-01Merge pull request #37547 from aaronfranke/tauRémi Verschelde
Use Math_TAU and deg2rad/etc in more places and optimize code
2021-01-29Use real_t in physics nodesAaron Franke
2021-01-27Fix particles not properly modified by their lifetimeYuri Roubinsky
2021-01-15Merge pull request #42713 from madmiraal/fix-42614Rémi Verschelde
Update area-body_shape_entered-exited signal documentation.
2021-01-13Merge pull request #45102 from nekomatata/fix-update-shape-dataRémi Verschelde
Fix collision shape update when changing shape properties
2021-01-12Update PolyPartition / Triangulator libraryAaron Franke
2021-01-12Fix collision shape update when changing shape propertiesPouleyKetchoupp
This change does two things: 1. Properly update the internal shape data using _update_in_shape_owner when updating a shape (in 2D it was resetting one way collision) 2. Avoid unnecessary updates when calling set_shape with the same shape, which happens each time a shape property is modified (e.g shape.extents.x = ...) Fixes #45090
2021-01-09Rename the final parameter of area_shape_entered-exited local_shape.Marcel Admiraal
2021-01-09Use Math_TAU and deg2rad/rad2deg in more places and optimize codeAaron Franke
2021-01-03Remove memory leak in Canvas GroupRafał Mikrut
2021-01-01Merge pull request #44839 from qarmin/fix_crash_tile_mapRémi Verschelde
Do not iterate over map when removing its values
2021-01-01Update copyright statements to 2021Rémi Verschelde
Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
2020-12-31Collision Shape 2D 'Disabled' Visualization CorrectionEoin O'Neill
Having white or strongly desaturated debug collision shape color setting would make it harder to visualize enabled / disabled state. This change makes it easier to visualize enabled / disabled state by reducing the alpha color by half when disabled.
2020-12-31Add signal to inform joint that body has exited treeMarcel Admiraal
2020-12-31Do not iterate over map when removing its valuesRafał Mikrut
2020-12-28Merge pull request #44183 from madmiraal/box_shape-sizeRémi Verschelde
Use a size Vector for adjusting the size of Rectangles and Boxes
2020-12-28Merge pull request #44149 from madmiraal/rename-tangent-orthogonalRémi Verschelde
Rename Vector2.tangent() to Vector2.orthogonal()
2020-12-28Merge pull request #44232 from madmiraal/rename-camera2d-drag-offsetRémi Verschelde
Rename Camera2D offset_h and offset_v properties
2020-12-28Rename Camera2D offset_h and offset_v propertiesMarcel Admiraal
2020-12-28Rename empty() to is_empty()Marcel Admiraal
2020-12-27 Fix shape_centered property in TouchScreenButtonkobewi
2020-12-25Merge pull request #44640 from nekomatata/joint2d_update_body_transformsRémi Verschelde
Update body transforms on joint2D setup
2020-12-23Update body transforms on joint2D setupPouleyKetchoupp
Body transforms from physics are used to setup the joint and they are only updated before the physics step by default. Without forcing the transform update, joints could use a previous position if the body's position was set after it was added to the scene. 3D physics is not affected by this issue.
2020-12-23Rename Control margin to offsetMarcel Admiraal
2020-12-21Merge pull request #44300 from KoBeWi/🧹🧹Rémi Verschelde
Move initialization of some classes to headers
2020-12-16Fix camera2d zoom when set to zero (causing ERROR: affine_invert: Condition ↵Dominik 'dreamsComeTrue' Jasiński
' det == 0 ' is true.) Fixes: #41873
2020-12-11Move initialization of some classes to headersTomasz Chabora
2020-12-09Cleanup unused engine codeTomasz Chabora
2020-12-08Use rectangle size instead of extents for Shape dimensionsMarcel Admiraal
2020-12-06Rename Vector2.tangent() to Vector2.orthogonal()Marcel Admiraal
2020-12-04Rename Particles/ParticlesMaterial "Flags" enum to "ParticleFlags"Aaron Franke
"Flags" was a bit too ambiguous, and in 3D it hid GeometryInstance.Flags
2020-12-04Rename LightOccluder2D light_mask to occluder_light_maskAaron Franke
2020-12-04Rename PathFollow2D rotate boolAaron Franke
2020-11-27Remove RigidBody weight propertyMarcel Admiraal
2020-11-26Implement signed distance fields for 2D shadersreduz
2020-11-25Check joint nodes and generate configuration warning messages.Marcel Admiraal
2020-11-22fixed Camera2D rotation with non-square zoomgreenfox