Bojidar Marinov
0c4c36d823
Add default values to the editor help, docs, and generated RST
...
Also, make spacing of "=" in the editor help a bit more consistent.
Closes #16086
2019-06-27 18:29:35 +03:00
Rémi Verschelde
f35fd681ac
Merge pull request #30114 from Chaosus/vs_context_menu
...
Shows menu when dragging connection on empty space in visual shader
2019-06-27 15:14:54 +02:00
Chaosus
0aec3c3113
Shows menu when dragging connection on empty space in visual shader graph
2019-06-27 10:48:18 +03:00
Rémi Verschelde
eaaff9da31
Merge pull request #29941 from qarmin/redundant_code_and_others
...
Remove redundant code, possible NULL pointers and others
2019-06-27 01:05:18 +02:00
Tomasz Chabora
00b15c19b7
Add a Direction property to ParticlesMaterial
2019-06-26 20:37:39 +02:00
qarmin
4e5310cc60
Some code changed with Clang-Tidy
2019-06-26 15:08:25 +02:00
Rémi Verschelde
93a67dba37
Merge pull request #30002 from GlaceGwyneth/master
...
Give LineEdit/TextEdit a custom color for font while uneditable
2019-06-25 13:05:27 +02:00
Gwyneth Lowe
45f78d786a
Give TextEdit a custom color for font when read only is set
...
Previously there was some transparency hard coded into TextEdit when in read only mode.
This change adds a custom color for adjusting the font in read only mode.
It also applies when syntax highlighting is on.
2019-06-24 20:00:05 -05:00
Gwyneth Lowe
f07e5ac153
Give LineEdit a custom font color when un-editable
...
By default the LineEdit's text when editable is unchecked had some transparency hardcoded.
This change adds a custom color to LineEdit for adjusting the font when editable is off.
Addresses issue 29814
2019-06-24 20:00:05 -05:00
Rémi Verschelde
908a50739a
Merge pull request #30031 from qarmin/prevent_setting_bad_index_enums
...
Set to enum variables, only correct values
2019-06-24 18:34:23 +02:00
qarmin
33c15799c7
Set to enum variables, only correct values
2019-06-24 14:53:26 +02:00
Rémi Verschelde
87039af95b
Merge pull request #29987 from Chaosus/fix_crashes
...
Fix expression node crashes
2019-06-23 20:36:44 +02:00
Rémi Verschelde
e294f0872e
TileSet: Don't error out on tile_ getters with wrong shape id
...
Partial revert of 02319dceb2
,
previous code handled this cases without errors and the TileSet and
TileSetEditorPlugin are written with the expectation that those will
not error out.
This is a bit wonky and these classes should likely be refactored,
but until then it's best to keep things as they were.
Fixes #29962 .
2019-06-23 13:57:53 +02:00
Chaosus
7bed1a0f21
Fix expression node crashes
2019-06-22 17:41:51 +03:00
Rémi Verschelde
ee07560abf
Curve: Prevent forcing 1.0 min value to 0.99
...
The setters are called when the property is first initialized, and before
that its default min and max are 0.0 and 1.0 respectively.
If you configured min_value to 1.0 and max_value to e.g. 3.0, since the
min_value setter can be called before that of max_value (which thus still
defaults to 1.0), the min will be set to 0.99.
Same conflict could happen with a configured max_value of 0 if its setter
is called before that of a valid, negative min value.
2019-06-21 16:08:45 +02:00
Rémi Verschelde
fae3df1204
Particles: Properly initialize angular velocity parameter
...
Right now it would take garbage values when loading scenes,
which could end up written to the scene file.
2019-06-21 15:23:10 +02:00
qarmin
c77ff48a85
Fix some editor crashes
2019-06-21 11:34:32 +02:00
Rémi Verschelde
5c66771e3e
Merge pull request #29283 from qarmin/fix_some_always_same_values
...
Remove always true/false values
2019-06-20 21:10:10 +02:00
qarmin
072e40368e
Fix always true/false values
2019-06-20 16:59:48 +02:00
Rémi Verschelde
b9f8e072ce
Merge pull request #26205 from Calinou/spatialmaterial-use-packed-channels
...
Tweak SpatialMaterial's default metallic and roughness texture channels
2019-06-20 11:46:01 +02:00
JohnJLight
38d3bfe971
Made use of semicolons more consitent, fixed formatting
2019-06-19 15:24:31 +02:00
Rémi Verschelde
66a854da78
Merge pull request #29878 from Dentrax/fixes
...
Added ERR_FAIL checks for `Animation::track_set_key_value` and `AnimationNodeStateMachine::remove_node`
2019-06-19 14:18:52 +02:00
Furkan Türkal
09907a28b3
added forgotten err_fail_index check
2019-06-19 13:07:18 +03:00
Rémi Verschelde
d6176db271
Unexpose subclasses of ResourceFormatLoader and -Saver
...
ResourceFormatLoader and ResourceFormatSaver are meant to be overridden
to add support for different formats in ResourceLoader and ResourceSaver.
Those should be exposed as they can be overridden in plugins.
On the other hand, all predefined subclasses of those two base classes
are only meant to register support for new file and resource types, but
should not and cannot be used directly from script, so they should not
be exposed.
Also unexposed ResourceImporterOGGVorbis (and thus its base class
ResourceImporter) which are editor-only.
2019-06-18 17:56:23 +02:00
Rémi Verschelde
24ee8c3566
Add script to fix style issues and copyright headers
...
This is only meant to check the validity of the whole codebase every
now and then, or to apply clang-format config changes when relevant.
2019-06-17 13:35:47 +02:00
Hugo Locurcio
c0b3e20ca7
Tweak some editor property hints to be more flexible and consistent
...
This partially addresses #19242 .
2019-06-16 23:52:16 +02:00
BastiaanOlij
02ea99129e
Adding a new Camera Server implementation to Godot.
...
This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server.
Other parts of Godot can interact with this to obtain images from the camera as textures.
This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
2019-06-15 21:30:32 +10:00
Rémi Verschelde
8e04aecb19
Merge pull request #29647 from YeldhamDev/file_dialog_hidden_toggle
...
Add toggle for hidden file visibility in FileDialog
2019-06-14 22:29:49 +02:00
Rémi Verschelde
6d16f2f053
Fix error macro calls not ending with semicolon
...
It's not necessary, but the vast majority of calls of error macros
do have an ending semicolon, so it's best to be consistent.
Most WARN_DEPRECATED calls did *not* have a semicolon, but there's
no reason for them to be treated differently.
2019-06-11 14:49:34 +02:00
Michael Alexsander Silva Dias
be6d48fcad
Add toggle for hidden file visibility in FileDialog
2019-06-10 00:20:24 -03:00
Rémi Verschelde
46c56cad0c
Merge pull request #29469 from bojidar-bg/29446-graphnode-seperation
...
Fix GraphNode not adding separation after the first node
2019-06-04 22:37:55 +02:00
Bojidar Marinov
8a1a067b91
Fix GraphNode not adding seperation after the first node
...
Fixes #29446
2019-06-04 16:05:23 +03:00
Rémi Verschelde
22583ec6a3
Merge pull request #29432 from bojidar-bg/29401-tscn-serialization
...
Escape node names when saving to .tscn
2019-06-03 16:25:00 +02:00
Bojidar Marinov
cc004485bc
Escape node names when saving to .tscn
...
Fixes #29401
2019-06-03 16:54:41 +03:00
Rémi Verschelde
0dac4d6db6
Merge pull request #25522 from aqnuep/MeshLibrary_improvements
...
MeshLibrary export improvements
2019-06-03 13:59:43 +02:00
Rémi Verschelde
1e55f8a241
Merge pull request #29422 from akien-mga/particlesmaterial-missing-enum-value
...
Bind missing FLAG_DISABLE_Z enum value in ParticlesMaterial
2019-06-03 12:24:40 +02:00
JFonS
6f31143996
Add HeightMapShape mesh in CollisionShape gizmo
2019-06-03 11:59:55 +02:00
Rémi Verschelde
a3462c97ad
Bind missing FLAG_DISABLE_Z enum value in ParticlesMaterial
...
Fixes #29419 .
2019-06-03 11:18:13 +02:00
Rémi Verschelde
4b399034aa
Merge pull request #24560 from guilhermefelipecgs/fix_24549
...
Add EDITMODE_PRIORITY for ATLAS_TILE
2019-06-01 09:49:18 +02:00
Tomasz Chabora
adcbcf87dd
Add track_set_key_time() to Animation
2019-05-31 00:40:29 +02:00
Rémi Verschelde
603bb98340
Merge pull request #29188 from Calinou/improve-ssao-performance-quality
...
Improve SSAO performance and quality
2019-05-30 14:27:25 +02:00
Rémi Verschelde
c11bf884e0
Merge pull request #25012 from avencherus/prevent-duplicate-keyframes
...
Do precision comparison to prevent the creation of keyframes with a time that already exists
2019-05-29 18:59:19 +02:00
Rémi Verschelde
235172e26b
Merge pull request #26355 from fire/expose_surface_tool
...
Expose more surface tools and add create_from_blend_shape.
2019-05-28 14:07:16 +02:00
Rémi Verschelde
bf6f41e0b9
Merge pull request #26978 from qarmin/fix_recursive_bitmapfont_crash
...
Fix crash when trying to set as Bitmap Font fallback one of his parent
2019-05-28 13:49:34 +02:00
Rémi Verschelde
335111c98f
Merge pull request #28581 from Lisapple/patch-1
...
Fixing Curve2D/3D baked interpolated values
2019-05-28 10:56:00 +02:00
Michael Alexsander Silva Dias
fad0338beb
Make animation editor change tracks positions instead of swapping them
2019-05-27 22:03:26 -03:00
Rémi Verschelde
2a74d852fe
Merge pull request #29228 from neikeq/issue-29117
...
Fix GetTypeInfo error due to missing include
2019-05-27 22:25:23 +02:00
Ignacio Etcheverry
d426dcabf8
Fix GetTypeInfo error due to missing include
2019-05-27 17:33:25 +02:00
Hugo Locurcio
eb0cced3c0
Improve SSAO performance and quality
...
This decreases the number of samples significantly, leading to a
notable performance increase with only a very slight loss in
visual quality.
This also tweaks the default SSAO settings to use 3×3 blurring,
which makes noise patterns much less visible.
2019-05-26 12:01:01 +02:00
clayjohn
4c55a909ad
fix radiance map settings
2019-05-25 18:57:32 -07:00
Rémi Verschelde
2b1c3878f9
Merge pull request #29031 from BastiaanOlij/alpha_shadow
...
Implement shadow to opacity
2019-05-23 13:37:54 +02:00
Chaosus
6d38754a06
Fix expression node parsing when input_port + \0 is occured
2019-05-21 19:45:01 +03:00
Chaosus
6f2abd68f2
Fix few bugs in expression node
2019-05-21 18:37:31 +03:00
Rémi Verschelde
7d42ca8384
Merge pull request #28838 from Chaosus/vs_exp
...
Expression node for visual shaders
2019-05-21 16:32:02 +02:00
Bastiaan Olij
3ea778e66e
Implement shadow to opacity
2019-05-21 20:07:46 +10:00
Chaosus
5648924eef
Expression node for visual shaders
2019-05-21 12:11:41 +03:00
Rémi Verschelde
63e7d2db08
Merge pull request #28218 from KoBeWi/b00km4rk5
...
Add bookmarks for easier code navigation
2019-05-20 22:39:19 +02:00
Rémi Verschelde
6920c82742
Style: Fix issues with clang-format 8.0
2019-05-20 13:51:51 +02:00
Rémi Verschelde
a940b4cf64
Merge pull request #28997 from akien-mga/codespell
...
Fix typos with codespell
2019-05-19 22:04:14 +02:00
Rémi Verschelde
e0574e1d98
Fix typos with codespell
...
Using codespell 1.15.0.
Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF
$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-05-19 13:10:35 +02:00
Chaosus
719a9a9c1c
Added Fresnel and OneMinus to visual shaders
2019-05-19 13:44:30 +03:00
Max Hilbrunner
ee5ba3e097
Merge pull request #28366 from iwek7/feature/issue28355/showSpacesInEditor
...
Add feature to show spaces in code editor
2019-05-17 20:38:40 +02:00
Rémi Verschelde
868ee3ea10
Merge pull request #28761 from aqnuep/texture_resource_reload_fix
...
Fix texture resource reload bug
2019-05-13 17:20:42 +02:00
Daniel Rakos
e34eb5c26c
Fix texture resource reload bug
...
If a non-imported texture resource file (e.g. DDS) gets updated the editor
doesn't reload it. The cause of the problem is two-fold:
First, the code of ImageTexture assumes that textures are always imported
from an image, but that's not the case for e.g. DDS. This change thus adds
code to issue a resource reload in case an image reload is not possible
(which is the case for non-imported texture resources).
Second, the code is filled with bogus calls to Image::get_image_data_size()
to determine the mipmap offset when that should be done using
Image::get_image_mipmap_offset(). Previous code literally passed the integer
mip level value to Image::get_image_data_size() where that actually expects
a boolean. Thus this part of the change might actually solve some other
issues as well.
To be pedantic, the texture_get_data() funciton of the rasterizer drivers is
still quite a mess, as it only ever returns the whole mipchain when
GLES_OVER_GL is set (practically only on desktop builds) but this change does
not attempt to resolve that.
2019-05-08 17:22:40 +02:00
Bastiaan Olij
e4dea0595a
Add transform support to deal with Bullets centering of shapes
2019-05-07 22:43:10 +10:00
Bastiaan Olij
4bb0df7060
Center shape according to logic Bullet applies
2019-05-07 20:44:09 +10:00
Rémi Verschelde
2a8cb46c8e
Merge pull request #28516 from Chaosus/fix_vs_mix_title
...
Renames captions of Scalar/VectorInterp in Visual Shaders
2019-05-06 17:34:15 +02:00
Rémi Verschelde
9123db748e
Merge pull request #28330 from BastiaanOlij/improve_multimesh
...
Added set_as_bulk_array, fixed transform2D saving and documentation
2019-05-06 09:57:48 +02:00
Tomasz Chabora
0bfcf8bc2f
Add bookmarks for easier code navigation
2019-05-05 18:57:53 +02:00
Rémi Verschelde
7b64a24eb3
Merge pull request #28548 from YeldhamDev/check_button_disabled_icon
...
Add "disabled" icon for 'CheckButton'
2019-05-03 14:55:32 +02:00
qarmin
4270403724
Fix crash when trying to set fallback or next pass with one of parent
2019-05-03 13:39:46 +02:00
Rémi Verschelde
f1e39e1fc8
Merge pull request #28636 from bojidar-bg/d2426-panel-styles
...
Remove unused panelf and panelnc styles
2019-05-03 09:40:11 +02:00
Bojidar Marinov
3d47dad2b1
Remove unused panelf
and panelnc
styles
...
Fixes godotengine/godot-docs#2426
2019-05-03 09:44:46 +03:00
Michael Alexsander Silva Dias
acadfe0a49
Add "disabled" icon for 'CheckButton'
2019-05-02 13:39:56 -03:00
Jared
e03f9ead21
Do precision comparison to prevent the creation of keyframes with a time that already exists.
2019-05-02 19:14:36 +03:00
Hugo Locurcio
818f756d90
Add a property hint for DynamicFont size
...
This caps its size to reasonable values in the Inspector.
This closes #22581 .
2019-05-02 00:46:53 +02:00
Maxime Leroy
6bd271139d
Fixing Curve2D/3D baked interpolated values
...
If bake interval is a multiple of the curve length, the curve would return NaN for some offset values (when `frac == 0.0`, it matches the start and end of the curve segment so `fmod == 0.0`, `frac` becomes NaN)
```
# Godot 3.1.1
var c = Curve3D.new()
c.add_point(Vector3())
c.add_point(Vector3(0.5,0,0))
c.add_point(Vector3(1,0,0))
c.bake_interval = 0.5
c.interpolate_baked(0.5) == Vector3(NAN, NAN, NAN)
```
2019-05-01 20:47:38 +02:00
miwanczuk
c86b03abd8
Expose TextEdit's drawSpaces feature to GDScript
2019-05-01 11:32:54 +02:00
Rémi Verschelde
ae41e35191
Merge pull request #27676 from qarmin/small_fixes_2
...
Small fixes to static analyzer bugs
2019-05-01 08:19:04 +02:00
Rémi Verschelde
0644040872
Merge pull request #27021 from MarianoGnu/font
...
Add and expose to Font a function to get the word-wraped text size
2019-04-30 18:33:00 +02:00
K. S. Ernest (iFire) Lee
22ce1e2709
Expose more surface tools and add create_from_blend_shape.
2019-04-30 06:50:25 -07:00
Rémi Verschelde
9dc9434b1b
Merge pull request #24437 from mateusfccp/single_quotes_option
...
Add settings for single-quotes on completion
2019-04-30 14:58:33 +02:00
Mariano Suligoy
33c39e4c25
Add and expose to Font a function to get the rect size needed to draw a word-wraped text
2019-04-30 12:03:17 +02:00
Rémi Verschelde
9d42565f81
Merge pull request #27763 from maksloboda/priority-improvement
...
Changed autotile priority picking algorithm
2019-04-30 11:07:41 +02:00
Chaosus
4131b2b891
Renames captions of Scalar/VectorInterp in Visual Shaders
2019-04-29 21:04:11 +03:00
Rémi Verschelde
23147ae2c3
Merge pull request #28101 from MunWolf/debugger_cursor
...
Added a marker in text_edit that tells which row is executing.
2019-04-29 18:38:38 +02:00
Rémi Verschelde
1af18ab235
Merge pull request #28399 from YeldhamDev/textedit_expose_tab_fold
...
Expose 'TextEdit's tab drawing and folding to GDScript
2019-04-29 17:04:46 +02:00
Bastiaan Olij
b652fcd241
Added set_as_bulk_array, fixed transform2D saving and documentation to MultiMesh
2019-04-26 20:30:16 +10:00
Aaron Franke
b659e1eb2b
Use approximate equallity methods in many places
2019-04-25 13:20:29 -04:00
Aaron Franke
b2e1c9c276
[Core] Approximate equality
2019-04-25 13:20:29 -04:00
Michael Alexsander Silva Dias
350bcce041
Expose 'TextEdit's tab drawing and folding to GDScript
2019-04-24 12:42:12 -03:00
Chaosus
21ca9f6c7c
Disallow loopback connection in visual scripts and visual shaders
2019-04-24 09:14:45 +03:00
Rikhardur Bjarni Einarsson
9bfa63496a
Added a marker in text_edit that tells which row is executing.
2019-04-23 21:51:01 +01:00
Hein-Pieter van Braam
05ef1f4998
Merge pull request #27903 from Calinou/richtextlabel-brighten-default-color
...
Brighten the RichTextLabel color in the default theme
2019-04-23 05:59:16 +03:00
qarmin
479649b5fb
Fix typo count_count to count
2019-04-23 01:25:29 +02:00
Juan Linietsky
f46899e922
Expose visible instance count to multimesh
2019-04-22 18:38:49 -03:00
Rémi Verschelde
a342131eba
Merge pull request #27673 from qarmin/small_fixes
...
Small fixes, mostly duplicated code
2019-04-22 12:00:34 +02:00
Rémi Verschelde
33b69340ad
Merge pull request #27219 from raphael10241024/debug_fix
...
Fix collider debug shape didn't changes with collider size changes
2019-04-21 20:34:34 +02:00
Juan Linietsky
04847ef5f9
Added ability for multiple images to be imported as an atlas
...
This adds support for groups in the import system, which point to a single file.
Add property hint for saving files in file field
2019-04-19 15:56:34 -03:00
Juan Linietsky
ad1368a625
Clean up ASSIMP import code.
2019-04-13 15:19:47 -03:00