Commit Graph

11796 Commits

Author SHA1 Message Date
Juan Linietsky 0e0a6bb39b
Removed unused property hints and `Object::get_translatable_strings()`
* Remove unused `EditorPropertyMember` and related hints, previouly used by
  VisualScript. Such logic should be implemented in the VS module itself.
* As the above broke compatibility with the VS module, clean up the other
  hacks that were still in core in support of VisualScript.
* `PROPERTY_USAGE_INTERNATIONALIZED` was only used in Object's
  `get_translatable_strings()`, which is a legacy function not used anywhere.
  So both are removed.
* Reordered some usage flags after the above removal to minimize the diff.
* General clean up.

Fixes #30203.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2023-01-09 16:56:01 +01:00
Yuri Sizov 00b5222f66 Fix inconsistent state of Controls when editing and running scenes 2023-01-09 15:54:04 +03:00
Rémi Verschelde 2db593ac2f
Merge pull request #70580 from timothyqiu/drop-extern
Fix error when dropping script into script editor
2023-01-09 09:22:08 +01:00
Rémi Verschelde 9c7723b717
Merge pull request #70920 from KoBeWi/exhibit_inside_catalogmap
Add Show in FileSystem option in the inspector
2023-01-09 08:33:58 +01:00
Rémi Verschelde e7905f4f48
Merge pull request #71045 from reduz/use-bitfield-in-core-types
Use BitField<> in core type masks
2023-01-09 08:33:26 +01:00
kobewi 6d65d886f2 Add Show in FileSystem option in the inspector 2023-01-08 23:25:13 +01:00
Rémi Verschelde bb08997b87
Merge pull request #70994 from reduz/prevent-inspector-resource-recursion
Prevent recursion (and hence crash) in inspector resource assignment.
2023-01-08 22:51:29 +01:00
Rémi Verschelde c3c5eceb35
Merge pull request #70463 from DarkKilauea/nav-server-const
[4.x] Rework const on NavigationServer methods
2023-01-08 22:50:05 +01:00
Rémi Verschelde 98131c0e32
Merge pull request #71068 from DarkMessiah/fix_about_godot
Fix UTF-8 encoding for copyright in About dialog
2023-01-08 22:48:17 +01:00
Rémi Verschelde 56522f7f8f
Merge pull request #71057 from EricEzaM/editor-node-cleanup
Remove unnecessary changing of shortcut name in editor node.
2023-01-08 22:45:32 +01:00
Rémi Verschelde 1722947c75
Merge pull request #71055 from EricEzaM/66424-fix-undo-redo
Fix Undo/Redo not working until Scene menu is opened.
2023-01-08 22:45:04 +01:00
Rémi Verschelde 30b3434daa
Merge pull request #71036 from Calinou/shader-editor-tweak-disabled-branch-color
Tweak text color for disabled preprocessor branches in the shader editor
2023-01-08 22:39:09 +01:00
Rémi Verschelde 495ec2130e
Merge pull request #70923 from KoBeWi/actual_resource
Refactor inspector code for getting resource
2023-01-08 22:37:05 +01:00
Juan Linietsky 2b815df3c1 Use BitField<> in core type masks
* All core types masks are now correctly marked as bitfields.
* The enum hacks in MouseButtonMask and many other types are gone. This ensures that binders to other languages non C++ can actually implement type safe bitmasks.
* Most bitmask operations replaced by functions in BitField<>
* Key is still a problem because its enum and mask at the same time. While it kind of works in C++, this most likely can't be implemented safely in other languages and will have to be changed at some point. Mostly left as-is.
* Documentation and API dump updated to reflect bitfields in core types.
2023-01-08 22:17:40 +01:00
Stanislav Labzyuk 0bde4a95e3 Fix UTF-8 encoding for copyright in About dialog 2023-01-08 16:15:26 +01:00
Eric M 8d0178a589 Remove unnecessary changing of shortcut name.
The same effect which was desired here can just be done with `set_item_text(...)`, which is what this PR does. It removes the need to constantly update the shortcut name when the scene menu is opened.
2023-01-08 20:48:56 +10:00
Eric M 8256b4ea23 Fix Undo/Redo not working until Scene menu is opened. 2023-01-08 20:35:30 +10:00
Josh Jones a0715b30f9 Rework const on NavigationServer methods
`const` is used on all methods, even when they cause modification of the server.  This reworks the methods of the server to only use `const` on method that don't change the state of the server.
2023-01-07 17:29:00 -08:00
Hugo Locurcio 5ce488b1fc
Tweak text color for disabled preprocessor branches in the shader editor
This makes text within disabled branches easier to distinguish from comments
when using a non-default editor syntax theme.
(The default editor syntax theme uses the same color as the text with 50%
opacity for comments, which means it looks the exact same.)
2023-01-07 20:18:38 +01:00
Rémi Verschelde d642274f75
Merge pull request #70939 from bruvzg/win_screen_2
Add support for the custom initial screen for the main window, fix primary screen detection.
2023-01-07 13:21:36 +01:00
Rémi Verschelde 329b85152a
Merge pull request #70902 from Cretezy/2d-polygon-indices-visibility
Fix "2D Polygon indices are barely visible on bright background" (#38009)
2023-01-07 13:19:33 +01:00
bruvzg 2718a7b7d3
Add support for the custom initial screen for the main window, fix primary screen detection. 2023-01-07 11:14:35 +02:00
Charles Crete 68b728950a Fix "2D Polygon indices are barely visible on bright background" (#38009)
Co-authored-by: Ethan <epruhl102@gmail.com>
2023-01-06 19:09:06 -05:00
Rémi Verschelde 163f6f5fe8
Merge pull request #68429 from KoBeWi/PropertySettings
Add PropertyInfo overload for GLOBAL_DEF
2023-01-06 22:59:29 +01:00
Rémi Verschelde 670405905d
Merge pull request #70999 from timothyqiu/unique-res-confirm
Fix unreadable text in Make Sub-Resources Unique window
2023-01-06 22:57:13 +01:00
Yuri Rubinsky 0e0557146c
Merge pull request #70639 from Chaosus/vs_uint
Closes https://github.com/godotengine/godot/issues/70634
2023-01-06 23:54:24 +03:00
Haoyu Qiu 0ba5d41a44 Fix unreadable text in Make Sub-Resources Unique window 2023-01-06 23:23:30 +08:00
Juan Linietsky bfc4470599 Prevent recursion in inspector resource assignment.
Fixes #43177
2023-01-06 15:05:33 +01:00
Yuri Rubinsky 35a9cd1d63 Fix errors when creating/deleting `VisualShaderNodeExpression` in graph 2023-01-06 14:20:30 +03:00
Yuri Rubinsky f101add78b Add `uint` type support to visual shaders 2023-01-06 10:35:25 +03:00
Rémi Verschelde b14f7aa9f9
Merge pull request #70500 from hakro/readd-renderer-options
Bring back the renderer options button on the main editor
2023-01-06 08:10:42 +01:00
Rémi Verschelde 158540e96a
Merge pull request #70960 from Maran23/4-x-c#-rect-props
Added Rect (rect_) properties to the c# migration table
2023-01-06 00:19:08 +01:00
Rémi Verschelde 272b82bdae
Merge pull request #70968 from kleonc/tile-atlas-view-update-zoom-and-panning
`TileAtlasView` Update zoom and panning before emitting signal
2023-01-06 00:13:16 +01:00
Rémi Verschelde e070362bd0
Merge pull request #70963 from YuriSizov/editor-dead-codes-society
Simplify some editor plugin logic and remove dead code
2023-01-06 00:11:59 +01:00
Rémi Verschelde 7bf4753a9b
Merge pull request #70675 from ZangEldor/pot-generating-fix
Fix generating POT for multiline messages
2023-01-06 00:10:06 +01:00
kleonc 4276752608 TileAtlasView Update zoom and panning before emitting signal 2023-01-05 22:00:05 +01:00
Marius Hanl c0feed47c7 Added Rect (rect_) properties to the c# migration table 2023-01-05 19:13:24 +01:00
Yuri Sizov 82c00c21e6 Simplify some editor plugin logic and remove dead code 2023-01-05 21:04:54 +03:00
Eldor Zang 250d648d2a Fixed issue #70617 : generating POT for multiline message
Fixed the issue and now each message's line is suceeded by a \n.
Fixes #70614
2023-01-05 16:03:02 +02:00
Rémi Verschelde 1d14c054a1
Merge pull request #70907 from xiongyaohua/fix_path3d_gizmo_not_show
Remove side effect of the `handles` method
2023-01-05 15:01:29 +01:00
Rémi Verschelde 798582acf0
Merge pull request #65609 from dalexeev/animated-sprite
`AnimatedSprite{2D,3D}` improvements
2023-01-05 15:00:31 +01:00
Rémi Verschelde d95794ec8a
One Copyright Update to rule them all
As many open source projects have started doing it, we're removing the
current year from the copyright notice, so that we don't need to bump
it every year.

It seems like only the first year of publication is technically
relevant for copyright notices, and even that seems to be something
that many companies stopped listing altogether (in a version controlled
codebase, the commits are a much better source of date of publication
than a hardcoded copyright statement).

We also now list Godot Engine contributors first as we're collectively
the current maintainers of the project, and we clarify that the
"exclusive" copyright of the co-founders covers the timespan before
opensourcing (their further contributions are included as part of Godot
Engine contributors).

Also fixed "cf." Frenchism - it's meant as "refer to / see".
2023-01-05 13:25:55 +01:00
Rémi Verschelde d29193affe
Merge pull request #70909 from TokageItLab/revert-improve-update_tree
Revert improve update tree
2023-01-05 12:56:07 +01:00
Rémi Verschelde f571129f9e
Merge pull request #70903 from Cretezy/tilemap-pattern-double-click
Fix "Double-click on the TileMap's pattern prints an error" (#70892)
2023-01-05 12:51:30 +01:00
Danil Alexeev 0d25d8e7fc
`AnimatedSprite{2D,3D}` improvements
* Add support for individual frame duration to `SpriteFrames`.
* Various minor improvements.
2023-01-05 13:13:25 +03:00
kobewi 48f60ef1cd Refactor inspector code for getting resource 2023-01-04 19:22:29 +01:00
Yaohua Xiong 20f909219e Remove side effect of the `handles` method 2023-01-04 20:09:10 +08:00
Silc Renew 724f2422d7 Revert "Merge pull request #70696 from Rindbee/propagate-keying-state"
This reverts commit c774b4ce17, reversing
changes made to ccc609d824.
2023-01-04 20:03:28 +09:00
Silc Renew eee9e3cd9a Revert "Merge pull request #68498 from Rindbee/improve-update_tree"
This reverts commit d5dc70a478, reversing
changes made to ccbefa1f43.
2023-01-04 19:15:20 +09:00
Charles Crete 50e09bbaef Fix "Double-click on the TileMap's pattern prints an error" (#70892) 2023-01-03 23:06:52 -05:00