summaryrefslogtreecommitdiffstats
path: root/scene/resources
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #46045 from bruvzg/text_server_bmp_createRémi Verschelde2021-02-243-32/+73
|\ | | | | [TextServer] Restores bitmap font dynamic construction functions.
| * [Text Server] Restores bitmap font dynamic construction functions.bruvzg2021-02-153-32/+73
| |
* | Merge pull request #38565 from nekomatata/export-default-valuesRémi Verschelde2021-02-211-1/+5
|\ \ | | | | | | Fixed export var default value in PackedScene when script is not loaded in editor
| * | Fixed export var default value in PackedScene when script is not loaded in ↵PouleyKetchoupp2020-05-081-1/+5
| | | | | | | | | | | | editor
* | | Draw an outline for 2D debug collision shapesHugo Locurcio2021-02-204-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | This makes them easier to distinguish, especially when used in a TileMap. The default color's opacity has been slightly decreased to account for the new outline.
* | | Merge pull request #46196 from nmrkr/visual-shader-invalid-forced-connectRémi Verschelde2021-02-191-0/+6
|\ \ \ | | | | | | | | Fix crash when calling connect_nodes_forced with invalid params
| * | | Fix crash when calling connect_nodes_forced with invalid paramsDelf Neumärker2021-02-181-0/+6
| | | |
* | | | Fix handling of negative indices in SurfaceToolDelf Neumärker2021-02-181-0/+1
|/ / /
* | | Modernize atomicsPedro J. Estébanez2021-02-182-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* | | Fixes crash when calling VisualShader::set_modeandybarcia2021-02-161-0/+2
| | |
* | | Merge pull request #46082 from YeldhamDev/styleboxline_margin_fixRémi Verschelde2021-02-161-2/+11
|\ \ \ | | | | | | | | Fix StyleBoxLine's incorrect style margin values
| * | | Fix StyleBoxLine's incorrect style margin valuesMichael Alexsander2021-02-161-2/+11
| | | |
* | | | Merge pull request #46069 from bruvzg/fix_font_crash_empty_dataRémi Verschelde2021-02-151-0/+4
|\ \ \ \ | | | | | | | | | | Fix font `draw_*string` crash with empty data.
| * | | | Fix font `draw_*string` crash with empty data.bruvzg2021-02-151-0/+4
| |/ / /
* / / / Fix `TextLine`/`TextParagraph` crash when `add_string` / `set_dropcap` is ↵bruvzg2021-02-152-0/+3
|/ / / | | | | | | | | | called null font reference.
* | | Merge pull request #45704 from EricEzaM/PR/popup-menu-beautificationRémi Verschelde2021-02-151-0/+2
|\ \ \ | | | | | | | | Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead
| * | | Improved PopupMenu visuals. Removed x-y margin, made it 'padding' instead.Eric M2021-02-151-0/+2
| | |/ | |/|
* / | [TextServer] Restore character and space extra spacing support.bruvzg2021-02-152-1/+43
|/ /
* | VisualShader::_input_type_changed Fix index out of bounds crash.kleonc2021-02-141-0/+1
| |
* | [CTL] Add missing font outline drawing routines and theme constants.bruvzg2021-02-141-2/+50
| |
* | Fix uninitialized `BaseMaterial3D::features` variable.bruvzg2021-02-141-1/+1
| |
* | Fix LineEdit minimum widthreduz2021-02-121-1/+1
| | | | | | | | | | -Changed theme setting name to make more sense of what it does -Reduced amount of minimum characters, so minimum size is smaller.
* | Improve resource load cachereduz2021-02-1124-70/+154
| | | | | | | | | | | | -Added a new method in Resource: reset_state , used for reloading the same resource from disk -Added a new cache mode "replace" in ResourceLoader, which reuses existing loaded sub-resources but resets their data from disk (or replaces them if they chaged type) -Because the correct sub-resource paths are always loaded now, this fixes bugs with subresource folding or subresource ordering when saving.
* | Removed _change_notifyreduz2021-02-1022-130/+89
| | | | | | | | | | | | -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.
* | Merge pull request #45845 from qarmin/cppcheck_scene_2Rémi Verschelde2021-02-1071-649/+356
|\ \ | | | | | | Initialize class variables with default values in scene/ [2/2]
| * | Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-0971-649/+356
| | |
* | | Make Servers truly Thread Safereduz2021-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | -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).
* | | Improve SDFGI indirect light feedback loopreduz2021-02-072-12/+11
|/ / | | | | | | | | -Use occlusion for feedback, further reduces light leaking. -More control on feedback, now its a slider.
* | Simplify Volumetric Fogreduz2021-02-062-18/+3
| | | | | | | | | | | | | | -Always use temporal reproject, it just loos way better than any other filter. -By always using termporal reproject, the shadowmap reduction can be done away with, massively improving performance. -Disadvantage of temporal reproject is update latency so.. -Made sure a gaussian filter runs in XY after fog, this allows to keep stability and lower latency.
* | Added temporal reprojection to Volumetric Fogreduz2021-02-052-1/+30
| | | | | | | | | | -It's an option, just enable it -Just works, don't have to do anything else.
* | Merge pull request #45672 from reduz/barrier-optimizationRémi Verschelde2021-02-041-1/+0
|\ \ | | | | | | Rewrote how barriers work for faster rendering
| * | Rewrote how barriers work for faster renderingreduz2021-02-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -Added more finegrained control in RenderingDevice API -Optimized barriers (use less ones for thee same) -General optimizations -Shadows render all together unbarriered -GI can render together with shadows. -SDFGI can render together with depth-preoass. -General fixes -Added GPU detection
* | | doc: Don't bind argument names with p_ prefixRémi Verschelde2021-02-041-6/+6
| | | | | | | | | | | | This prefix is used in the C++ codebase, not in the scripting API.
* | | Make SyntaxHighligher::_clear_highlighting_cache virtualGeorge Marques2021-02-041-2/+1
| | | | | | | | | | | | Since it's meant to be used as a virtual method.
* | | Removed duplicated binding of two methodsGeorge Marques2021-02-041-2/+0
|/ / | | | | | | | | | | They are bound as both regular and virtual methods which makes ClassDB report the methods twice when querying the API. The non-virtual binding is removed since both methods only seem to be used as virtual.
* | Merge pull request #45496 from Chaosus/fix_particlesRémi Verschelde2021-02-031-13/+15
|\ \ | | | | | | Fix particles not properly updated by their lifetime
| * | Fix particles not properly modified by their lifetimeYuri Roubinsky2021-01-271-13/+15
| | |
* | | Add check for sun in PhysicalSkyclayjohn2021-02-021-47/+53
| | |
* | | Merge pull request #45594 from JFonS/improve_3d_gridRémi Verschelde2021-02-011-1/+1
|\ \ \ | | | | | | | | 3D editor grid improvements
| * | | 3D editor grid improvementsjfons2021-02-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a view-dependant fade to the 3D viewport grid. It fades out at steep view angles to hide the solid regions that appear far from the camera. I also included a fade to hide the grid borders. I added some improvements to the dynamic grid when the camera is in orthogonal mode. It properly handles zoom now, and the grid center is now set to the intersection point between the grid plane and the camera forward ray, keeping the grid always visible.
* | | | Merge pull request #37547 from aaronfranke/tauRémi Verschelde2021-02-014-19/+21
|\ \ \ \ | | | | | | | | | | Use Math_TAU and deg2rad/etc in more places and optimize code
| * | | | Use Math_TAU and deg2rad/rad2deg in more places and optimize codeAaron Franke2021-01-094-19/+21
| | | | |
* | | | | Merge pull request #45281 from Chaosus/vs_unifyRémi Verschelde2021-02-012-430/+543
|\ \ \ \ \ | |_|/ / / |/| | | | Unified several visual shader nodes
| * | | | Unified several visual shader nodesYuri Roubinsky2021-01-182-430/+543
| | | | |
* | | | | doc: Sync classref with current sourceRémi Verschelde2021-01-281-2/+2
| | | | |
* | | | | Added missed Button `font_hover_pressed_color` styleYuri Roubinsky2021-01-271-0/+1
| |_|/ / |/| | |
* | | | Reveals Button "icon_color" style properties to the userYuri Roubinsky2021-01-261-0/+6
| | | |
* | | | Merge pull request #44194 from madmiraal/fix-font_selected_colorRémi Verschelde2021-01-261-68/+69
|\ \ \ \ | | | | | | | | | | Change themes font_color_selected to font_selected_color
| * | | | Change themes *_color_* to *_*_colorMarcel Admiraal2021-01-241-68/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed: font_color_accel -> font_accelerator_color font_color_bg -> font_unselected_color font_color_disabled -> font_disabled_color font_color_fg -> font_selected_color font_color_hover -> font_hover_color font_color_hover_pressed -> font_hover_pressed_color font_color_pressed -> font_pressed_color font_color_readonly -> font_readonly_color font_color_selected -> font_selected_color font_color_shadow -> font_shadow_color font_color_uneditable -> font_uneditable_color icon_color_disabled -> icon_disabled_color icon_color_hover -> icon_hover_color icon_color_hover_pressed -> icon_hover_pressed_color icon_color_normal -> icon_normal_color icon_color_pressed -> icon_pressed_color Also includes: font_outline_modulate -> font_outline_color tab_fg -> tab_selected tab_bg -> tab_unselected
* | | | | Merge pull request #45447 from pycbouh/graphedit-minimap-active-invisibleRémi Verschelde2021-01-251-0/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix minimap capturing events and improve its theme and editor settings