Josh Chandler
879f84d8f8
add viewport.get_camera_2d()
...
* there is now a more clear distinction between camera_2d and camera_3d functions in the engine code
* simplified camera2d's exported interface - now everything happens directly with the 'current' variable and make_current and clear_current are no longer exposed- there were some situations where calling one instead of set_current would result in incomplete results
* rebased to current godot master
2021-07-03 15:08:17 -04:00
Rémi Verschelde
e849dc1791
Merge pull request #50080 from reduz/fix-old-mesh-compatibility
...
Add compatibility with old mesh formats
2021-07-03 17:13:34 +02:00
Rémi Verschelde
4cb6986cdb
Merge pull request #50096 from reduz/fix-render-info
...
Fix Render Info
2021-07-03 17:04:07 +02:00
reduz
6c55d2aad2
Fix Render Info
...
* Fixed and redone the process to obtain render information from a viewport
* Some stats, such as material changes are too difficult to guess on Vulkan, were removed.
* Separated visible and shadow stats, which causes confusion.
* Texture, buffer and general video memory can be queried now.
* Fixed the performance metrics too.
2021-07-03 10:15:04 -03:00
Rémi Verschelde
a525e77740
Merge pull request #49468 from menip/FixGetScreenPosition
...
Fix Control::get_screen_position() not considering viewport scale
2021-07-03 14:29:20 +02:00
Rémi Verschelde
ecf9ea740e
Merge pull request #50099 from KoBeWi/'
...
Support single quote when dropping files to script
2021-07-03 13:42:59 +02:00
kobewi
5e593dda9b
Support single quote when dropping files to script
2021-07-03 13:03:20 +02:00
Rémi Verschelde
c1320aad25
Merge pull request #50119 from BastiaanOlij/fix_override_scene_render
...
Properly override virtual functions in render_scene_render_rd
2021-07-03 12:57:23 +02:00
Bastiaan Olij
e86aeb85ce
Properly override virtual functions in render_scene_render_rd and subclasses
2021-07-03 20:32:40 +10:00
Rémi Verschelde
b9b128cb1d
Merge pull request #50102 from nekomatata/expose-body-test-motion-3d
...
Expose body_test_motion in 3D physics server
2021-07-03 09:29:46 +02:00
PouleyKetchoupp
62e577267f
Expose body_test_motion in 3D physics server
...
Results are exposed through PhysicsTestMotionResult3D, the same way it's
done for 2D.
Also cleaned a few things in the 2D version.
2021-07-02 18:03:44 -07:00
Rémi Verschelde
a8fb450b3c
Merge pull request #50092 from YeldhamDev/window_get_contents_expose
...
Expose `Window.get_contents_minimum_size()` to scripts
2021-07-02 22:12:11 +02:00
Rémi Verschelde
676027fc3d
Merge pull request #50089 from YeldhamDev/splitcontainer_minimal_fix
...
Make invisible `SplitContainer` nodes correctly calculate the minimal size of its children
2021-07-02 22:11:30 +02:00
Rémi Verschelde
c77e0da1d7
Merge pull request #50090 from Calinou/remove-leftover-optimized-directional-shadow-depth-range
...
Remove leftovers from the DirectionalLight3D Optimized shadow depth range
2021-07-02 22:11:17 +02:00
Rémi Verschelde
f2229bb1ea
Merge pull request #50085 from madmiraal/android-replace-stringbuffer
...
Use StringBuilder instead StringBuffer in Godot Java code
2021-07-02 22:09:50 +02:00
Rémi Verschelde
aee59c3547
Merge pull request #50083 from madmiraal/android-fix-raw-use
...
Fix raw use of parameterized Class
2021-07-02 22:09:39 +02:00
Rémi Verschelde
c2df3e6329
Merge pull request #50087 from madmiraal/android-remove-redundant-explicit-types
...
Remove redundant explicit types in Godot Java code
2021-07-02 22:08:55 +02:00
Michael Alexsander
a829e88ddc
Expose Window.get_contents_minimum_size()
to scripts
2021-07-02 15:35:56 -03:00
Hugo Locurcio
5370f4876e
Remove leftovers from the DirectionalLight3D Optimized shadow depth range
...
The Optimized shadow depth range was removed in late 2020 in favor
of the Stable shadow depth range, but it still had a (broken) property
that allowed to enable it.
2021-07-02 20:32:43 +02:00
Michael Alexsander
e4d56e4c62
Make invisible SplitContainer
nodes correctly calculate the minimal size of its children
2021-07-02 14:39:50 -03:00
Marcel Admiraal
3f95bbed73
Remove redundant explicit types in Godot Java code
2021-07-02 17:45:30 +01:00
Rémi Verschelde
ee115d7b2d
Merge pull request #50081 from Calinou/doc-randomnumbergenerator
...
Improve and clarify documentation for RandomNumberGenerator
2021-07-02 18:32:03 +02:00
Marcel Admiraal
61ee51d2bf
Use StringBuilder instead StringBuffer in Godot Java code
2021-07-02 16:57:12 +01:00
Hugo Locurcio
7d4c20f9db
Improve and clarify documentation for RandomNumberGenerator
2021-07-02 17:47:52 +02:00
Rémi Verschelde
710effdaad
Merge pull request #50078 from madmiraal/android-remove-unused-imports
2021-07-02 17:45:29 +02:00
Marcel Admiraal
d237f7d33d
Fix raw use of parameterized Class
2021-07-02 16:35:52 +01:00
reduz
a632f9fd6e
Add compatibility with old mesh formats
...
* Can load 2.x meshes
* Can load 3.x meshes
2021-07-02 12:34:54 -03:00
Rémi Verschelde
83d27ce7d7
Merge pull request #50077 from thebestnom/fix/initialize_mouse_mode
...
Android: Initialize mouse mode
2021-07-02 17:25:42 +02:00
thebestnom
e200195564
Android: Initialize mouse mode
2021-07-02 18:00:33 +03:00
Marcel Admiraal
a38fd4a4c2
Remove unused imports from Android Java code
2021-07-02 12:57:55 +01:00
Rémi Verschelde
6ef0b8fcd3
Merge pull request #50074 from madmiraal/android-replace-c-array
...
Use Java array declarations not C-style declarations in Android Java code
2021-07-02 13:44:22 +02:00
Rémi Verschelde
42184dd6d5
Merge pull request #50072 from madmiraal/android-remove-interface-modifiers
...
Remove redundant interface modifiers from Android Java code
2021-07-02 12:35:14 +02:00
Marcel Admiraal
721b3d56c5
Use Java array declarations not C-style declarations in Android Java code
2021-07-02 11:09:09 +01:00
Rémi Verschelde
04649ecd55
Merge pull request #50071 from madmiraal/android-remove-semicolons
...
Remove unnecessary semicolons from Android Java code
2021-07-02 11:23:49 +02:00
Rémi Verschelde
276f25688d
Merge pull request #50065 from SirQuartz/patch-1
...
Add `action_get_deadzone()` method to `InputMap`
2021-07-02 10:58:01 +02:00
Marcel Admiraal
a74e803a4f
Remove redundant interface modifiers from Android Java code
2021-07-02 09:37:45 +01:00
Marcel Admiraal
360447001d
Remove unnecessary semicolons from Android Java code
2021-07-02 08:54:09 +01:00
Nick H
c6f28ed62b
Add get_dead_zone()
method to InputMap
...
This commit adds a new method to the `InputMap`, allowing the user to get the value of an action's dead zone as a float.
2021-07-02 03:07:37 -04:00
Juan Linietsky
eefe276a82
Merge pull request #50058 from reduz/fix-surface-from-arrays
...
Fix surface from array creation
2021-07-01 17:50:02 -03:00
Rémi Verschelde
97e041e285
Merge pull request #50057 from reduz/force-string-in-dictionary
...
Force String as Dictionary key instead of StringName
2021-07-01 22:22:47 +02:00
reduz
8cf812fba1
Fix surface from array creation
...
* The debug check was not updated to the new format.
* Bug introduced by #50037
2021-07-01 16:51:55 -03:00
Rémi Verschelde
022640a8fd
Merge pull request #50041 from aaronfranke/prop-usage-flags
...
Use `PROPERTY_USAGE_NONE` instead of `0` for no property usage
2021-07-01 21:29:32 +02:00
reduz
379b90fd33
Force String as Dictionary key instead of StringName
...
* Lua table syntax uses named indexing: `{ mykey = myvalue }`
* Python style syntax uses string indexing: `{ "mykey" : myvalue }`
* Both are incompatible since a StringName key wont fetch a String key, hence confusing.
* This PR proposes always using String for indexing at a very minimal performance cost. Always indexing with StringNames will be faster, but they are considerably more expensive to create.
2021-07-01 16:03:37 -03:00
Aaron Franke
2508fd0533
Use PROPERTY_USAGE_NONE instead of 0 for no property usage
...
Also use const more often.
2021-07-01 14:13:27 -04:00
Rémi Verschelde
382ddd497a
Merge pull request #50052 from Valeryn4/Valeryn4-Fix-GridMap
2021-07-01 20:08:22 +02:00
Pitanov V.V
4da4514b71
Fix GridMap erase Octans
2021-07-02 03:26:26 +10:00
Rémi Verschelde
ad8a2b3d52
Merge pull request #50040 from reduz/fix-renderingserver-bindings
...
Clean up RenderingServer and its bindings
2021-07-01 15:17:33 +02:00
reduz
37776b2867
Clean up RenderingServer and its bindings
...
* Rewrote bindings for RenderingServer.
* They are now all up to date.
* Several unused methods and deprecated features were cleaned up.
2021-07-01 09:07:36 -03:00
Rémi Verschelde
9f30638d4b
Merge pull request #50044 from akien-mga/localvector-find-noerror
...
LocalVector: Don't error if `from` >= `count`
2021-07-01 13:13:27 +02:00
Rémi Verschelde
230a24a49d
Merge pull request #50026 from lyuma/callable_is_valid
...
Add Callable.is_valid() analogous to FuncRef.is_valid() from 3.x
2021-07-01 12:57:14 +02:00