Rémi Verschelde
2408e214a7
Merge pull request #33006 from Chaosus/fix_billboard_bug
...
Allows change Sprite3D scale if Billboard mode is enabled
2019-10-23 21:41:19 +02:00
Yuri Roubinsky
fa9148f343
Allows change Sprite3D scale if Billboard mode is enabled
2019-10-23 14:32:59 +03:00
SeleckyErik
fa59defb53
Theme code refactoring
...
- Move GDScript-exposed function definitions from header to source file
- Add null check to functions taking list pointers as parameters
- Call clear() in copy_theme() if null is passed
2019-10-23 03:08:40 +01:00
Rémi Verschelde
1be39232b4
Merge pull request #32842 from LikeLakers2/animation-idx-to-track-idx
...
Changes the name of all parameters referring to track indices within Animation, to `track_idx`
2019-10-22 14:55:21 +02:00
LikeLakers2
68552d9a4b
Changes the name of all parameters referring to track indices within Animation, to "track_idx"
2019-10-14 18:08:41 -04:00
Aaron Franke
aeb7075628
Replace vector == and is_zero_approx(distance) with is_equal_approx
...
Internal changes only
2019-10-14 16:47:42 -04:00
qarmin
616ab4fac2
Small fixes to redundand code, copy paste bugs
2019-10-14 11:40:55 +02:00
Hugo Locurcio
c8a8be6dd1
Optimize images losslessly using `oxipng -o6 --strip all --zopfli`
2019-10-12 23:23:33 +02:00
Rémi Verschelde
062650860a
Merge pull request #32731 from codecustard/fix_concaveshape_not_selecting
...
Fixes concaveshape not selecting in viewport
2019-10-11 14:55:47 +02:00
Emmanuel Barroga
29690f6aec
Fixes concaveshape not selecting in viewport
...
This PR resolves the issue of ConcaveShapes not being selectable in the Viewport.
2019-10-11 03:42:36 -07:00
Yuri Roubinsky
b217babca2
[VShaders] Added sampler port to CubeMap, fixed parsing in expresssion s
2019-10-11 10:36:04 +03:00
Rémi Verschelde
2c84a9651f
Merge pull request #32707 from Chaosus/vs_lod_textures
...
Uses LoD even if UV slot is not used in visual shader textures
2019-10-10 12:37:12 +02:00
Rémi Verschelde
cfc26f53d6
Merge pull request #32705 from qarmin/validate_array_index_stylebox
...
Validate array indexes in StyleBox
2019-10-10 12:14:09 +02:00
Yuri Roubinsky
d2fd2f32fc
Uses LoD even if UV slot is not used in visual shader textures
2019-10-10 13:11:04 +03:00
qarmin
00b86b29f1
Validate array indexes in StyleBox
2019-10-10 11:48:58 +02:00
Yuri Roubinsky
0ec352213d
Removed "rebuild" function from public interface of VisualShader
2019-10-10 12:15:55 +03:00
Yuri Roubinsky
fec8da3c5e
Makes cube maps to be works in visual shaders
2019-10-09 12:13:53 +03:00
Rémi Verschelde
e2f1b30565
Merge pull request #32618 from nekomatata/sprite-to-polygon
...
Sprite to polygon conversion improvements
2019-10-08 16:13:38 +02:00
Rémi Verschelde
a65019f41a
Merge pull request #32606 from cbolgiano/bugfix/32294
...
Fixes Default Angular Damp in Project Settings Disallows Fractional Input #32294
2019-10-08 06:34:25 +02:00
devbox
f5bb9a98dc
32294: Changed the default_angular_damp value to a float.
...
32294: Added hints for both 2d/3d linear/angular.
32294: Added hints for both 2d/3d linear/angular.
2019-10-07 18:15:20 -04:00
PouleyKetchoupp
1e301479da
Sprite to polygon conversion improvements
...
- No reduced Rect in march square algorithm, it was causing inconsistent cases near the borders and made the outline less accurate
- Ignore invalid generated polygons (under 3 points) to avoid unnecessary errors and crashes
- Error popup only when no polygon could be generated at all
- Added option to shrink pixels (to get rid of small separate islands)
- Fixed polygon preview (lines were sometimes not showing along the borders)
Fixes #32564 , #29267
2019-10-07 13:19:30 +02:00
Rémi Verschelde
f84bf7e8a8
Merge pull request #32351 from nekomatata/texture-rect-size-update
...
Update TextureRect when its Texture is modified directly
2019-10-07 08:57:17 +02:00
PouleyKetchoupp
c7834ee566
Update TextureRect and Sprite when their Texture is modified directly.
...
Modified Sprite to use "changed" signal instead of _changed_callback to make it work when tool is disabled (change receptors are editor only).
Fixes #32349
2019-10-05 17:32:46 +02:00
Yuri Roubinsky
b11d15d5c3
Makes Texture and TextureUniform in visual shaders to use UV by default
2019-10-03 16:59:49 +03:00
Hugo Locurcio
379e1789dd
Remove unused stb_truetype-based DynamicFont implementation
...
The DynamicFont implementation currently in use is based on
FreeType, which provides much better visual quality.
This old implementation wasn't exposed anywhere, so this shouldn't
break compatibility.
This decreases binary sizes by a few kilobytes.
2019-10-03 01:19:02 +02:00
Yuri Roubinsky
31ada3b685
Fix global code in visual shaders if two or more custom nodes are used
2019-10-02 17:13:19 +03:00
clayjohn
afaa68628a
updated defaults and documentation for GLES2 glow
2019-10-01 07:55:04 -07:00
Rémi Verschelde
b60fdb21e9
Merge pull request #32461 from Chaosus/vs_sampler_type
...
Added sampler port type for visual shaders
2019-10-01 13:59:27 +02:00
Chaosus
f14bcd8cc5
Added sampler port type for visual shaders
2019-10-01 13:20:08 +03:00
Rémi Verschelde
1f40117caa
Merge pull request #31845 from clayjohn/GLES2-BCS
...
Implement DOF blur, Glow, and BCS in GLES2
2019-10-01 09:21:31 +02:00
clayjohn
82f63633d1
Implement DOF blur, Glow, and BCS in GLES2
2019-09-30 08:04:31 -07:00
Rodolfo Ribeiro Gomes
20b493f790
fix dynamic font crash if no available font size
2019-09-29 12:05:11 -03:00
Rémi Verschelde
d0e45e78a4
doc: Sync classref with current source
...
And various fixes to bindings, hyperlinks and an uninitialized variable.
2019-09-27 22:16:42 +02:00
Hugo Locurcio
70c4e96623
Draw an indicator to denote overbright colors in ColorPicker
...
This makes it faster to distinguish overbright colors from
"standard" colors.
2019-09-27 15:28:42 +02:00
Hugo Locurcio
a199e2b263
Mention `MeshLibrary.get_item_preview()` not working in running project
2019-09-25 22:01:59 +02:00
Rémi Verschelde
dec10dd776
Merge pull request #32051 from qarmin/some_error_explanation
...
Added some obvious errors explanations
2019-09-25 11:51:54 +02:00
qarmin
17732fe698
Added some obvious errors explanations
2019-09-25 10:28:50 +02:00
Rémi Verschelde
0c3335d1f3
Merge pull request #32309 from clayjohn/particles_tex_scale
...
Fix particles scale randomization
2019-09-24 18:05:44 +02:00
clayjohn
bc94203add
fix particles scale randomization
2019-09-24 08:03:53 -07:00
Rémi Verschelde
2f52d73c21
Merge pull request #31925 from bojidar-bg/31855-overriden-properties-docs
...
Add overriden properties to the documentation
2019-09-24 11:53:43 +02:00
Rémi Verschelde
823c3def72
Fix copyright headers and style issues
2019-09-24 11:52:06 +02:00
Rémi Verschelde
4f294b958f
doc: Sync classref with current source
...
Fix a few missing bindings or unspecified argument names and default values.
2019-09-24 11:52:06 +02:00
Rémi Verschelde
159470df08
Merge pull request #32275 from godotengine/skin_support
...
Added skin support and simplified APIs to override bone position + glTF 2.0 import fixes
2019-09-23 15:02:15 +02:00
Rémi Verschelde
cf1e914897
Merge pull request #32027 from lupoDharkael/group-order
...
Preserve group order in scene files
2019-09-23 09:24:56 +02:00
Hugo Locurcio
40a5de97e6
Remove an unused icon and constant in Tree
2019-09-20 17:50:13 +02:00
Rémi Verschelde
1e73a44e24
Merge pull request #31904 from byfron/styleboxflag_uvcoords
...
Computes UV coordinates of the canvas_item vertices of StyleBoxFlat
2019-09-19 20:04:46 +02:00
Juan Linietsky
d81ddaf33e
Added skin support and simplified APIs to override bone position.
2019-09-18 19:46:32 -03:00
Yuri Rou
6dcd4379ca
Some formatting fixes in visual_shader_nodes.cpp
2019-09-18 19:04:40 +03:00
lupoDharkael
d6269e1bc0
Preserve group order in scene files
2019-09-07 15:54:53 +02:00
Chaosus89
c188c5597f
Removed useless code from Switch in visual shader
2019-09-05 09:07:13 +03:00
Chaosus89
bd507739ea
Fix formatting error for bool in resulted code of visual shader
2019-09-05 08:32:24 +03:00
Yuri Roubinsky
aadbb66dc2
Merge pull request #31926 from Chaosus/vs_switch
...
Some improvements for Switch node in visual shaders
2019-09-04 19:21:54 +03:00
Chaosus89
bf3024c172
Added missing OUTPUT_IS_SRGB and FRONT_FACING to visual shaders
2019-09-04 18:24:44 +03:00
Chaosus89
54f0889f20
Fix parsing array indexing symbol in visual shader expression
2019-09-04 16:01:41 +03:00
Bojidar Marinov
6c4407bae4
Add overriden properties to the documentation
...
Fixes #31855
2019-09-04 15:21:40 +03:00
Rémi Verschelde
b679f622d8
Merge pull request #31618 from fjordyo0707/fix_mesh_edges
...
Fix the edges of the mesh vertex
2019-09-04 08:53:29 +02:00
Chaosus89
a79d8e3b8f
Some improvements for Switch node in visual shaders
2019-09-03 15:11:02 +03:00
byfron
b7ed4829ba
Computes UV coordinates of the canvas_item vertices of StyleBoxFlat
2019-09-02 20:57:43 +02:00
Yuri Roubinsky
ff65489ddc
Fix semicolon parsing in visual shader expression ( #31857 )
...
Fix semicolon parsing in visual shader expression
2019-09-01 14:45:22 +03:00
Rémi Verschelde
a02d2fdb84
Merge pull request #31848 from Chaosus/fix_graph_resizer_style
...
Fix resizer icon visiblity on light theme in GraphNode
2019-09-01 12:30:52 +02:00
Chaosus89
a68ea5721f
Fix semicolon parsing in visual shader expression
2019-09-01 13:12:33 +03:00
Chaosus89
466a9ffdc6
Fix visual shader expression parsing
2019-09-01 12:14:20 +03:00
Chaosus89
8fd8589547
Fix resizer icon visiblity on light theme in GraphNode
2019-09-01 09:12:26 +03:00
Rémi Verschelde
9762372329
Merge pull request #30635 from KoBeWi/billbo_3dns
...
Add a Billboard property for Sprite3D
2019-08-29 13:06:37 +02:00
Tomasz Chabora
b055ade1c3
Add a Billboard property for Sprite3D
2019-08-28 23:00:44 +02:00
Hugo Locurcio
bc1b2b96e1
Tweak the default fog depth end to use a fixed value
...
The previous value (0) was a special case in the fog shader.
It made the shader use the Camera's `far` value as the fog depth end
value, which led to an inconsistency in the fog rendering between
the editor and a running project. This is because the editor camera
uses a `far` property of 500 by default, whereas the Camera node's
`far` property is set to 100 by default.
The new fixed value is equal to the default `far` property in Camera,
which leads to a consistent appearance between the editor and a running
project.
This closes #31686 .
2019-08-27 18:32:05 +02:00
fjordyo
4c28053ead
Fix the edges of the mesh vertex
2019-08-24 10:27:22 +08:00
Rémi Verschelde
791d7f78b5
Merge pull request #31593 from SaracenOne/project_theme_shutdown_fix
...
Fixes issue with project_default_theme not being cleaned up
2019-08-23 11:26:33 +02:00
Saracen
08ceef2e39
Fixes issue with project_default_theme not being dereferenced on cleanup.
2019-08-23 09:18:42 +01:00
Yuri Roubinski
725e5d15ff
Added "editable" property to VisualShaderGroupNode
2019-08-22 15:12:18 +03:00
Hugo Locurcio
e1b9004b0f
Rename FileDialog's folder icon custom color to `folder_icon_modulate`
...
The custom color introduced in be8d569744
had the same name as the "folder" icon, which could cause conflicts
in the generated documentation.
The new name is also more self-explanatory.
2019-08-21 18:43:01 +02:00
Yuri Roubinsky
093798c976
Fix preview for global expressions in visual shaders ( #31505 )
...
Fix preview for global expressions in visual shaders
2019-08-20 21:11:28 +03:00
Yuri Roubinski
1e3fb6d760
Fix preview for global expressions in visual shaders
2019-08-20 19:34:09 +03:00
Rémi Verschelde
a8db4c848d
Merge pull request #31395 from ptrojahn/floatsarenasty
...
Replace is_zero_approx(A.distance_to(B)) with A==B
2019-08-20 12:54:40 +02:00
Hugo Locurcio
be8d569744
Use a different color for folder icons in file dialogs
...
This makes them easier to distinguish from files for quick
visual grepping.
This can also be used in projects by setting the FileDialog "folder"
color. The default value (`Color(1, 1, 1)`) has no visual impact,
for compatibility with existing projects.
2019-08-20 00:10:27 +02:00
Paul Trojahn
7c9c6df7e4
Replace is_zero_approx(A.distance_to(B)) with A==B
...
Related to #22988 (Fixes the holes in the shape of
the first comment)
2019-08-19 18:16:58 +02:00
Rémi Verschelde
ef37f00525
Merge pull request #31453 from Chaosus/vs_code_preview
...
Added code preview to visual shader
2019-08-18 17:32:49 +02:00
Yuri Roubinski
808e44df6d
Added code preview to visual shader
2019-08-18 17:28:19 +03:00
Yuri Roubinski
e3b43771aa
Added global expressions to visual shaders
2019-08-18 08:49:56 +03:00
Rémi Verschelde
d3153c28f0
Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'
...
The last remaining ERR_EXPLAIN call is in FreeType code and makes sense as is
(conditionally defines the error message).
There are a few ERR_EXPLAINC calls for C-strings where String is not included
which can stay as is to avoid adding additional _MSGC macros just for that.
Part of #31244 .
2019-08-17 13:31:22 +02:00
Rémi Verschelde
188a10df8b
Merge pull request #31263 from Chaosus/vs_plugin
...
Plugin support for visual shaders
2019-08-14 15:52:21 +02:00
Yuri Roubinski
33e9fce1bb
Plugin support for visual shaders
2019-08-14 15:52:27 +03:00
IAmActuallyCthulhu
82b9557803
Remove redundant author doc comments
2019-08-12 04:26:38 -05:00
Tomasz Chabora
af5e0fff66
Remove ERR_EXPLAIN from scene/* code
2019-08-09 13:54:52 +02:00
Rémi Verschelde
d2a67c9c1f
Merge pull request #30714 from Calinou/invert-default-fog-height
...
Invert and adjust the default fog height values
2019-08-08 17:20:32 +02:00
Hugo Locurcio
d1a35b5a97
Invert and adjust the default fog height values
...
This makes height fog appear at the bottom of the scene
(instead of the top), which is generally the expected result.
This also tweaks the fog height setting hint to be more flexible.
This closes #30709 .
2019-08-07 18:21:44 +02:00
Rémi Verschelde
ca05613aed
Merge pull request #31050 from sparkart/fix_tileset_shape_offset
...
Fix Wrong Shape Offsets in Tileset
2019-08-07 14:27:29 +02:00
Rémi Verschelde
ba541bceca
Merge pull request #31077 from qarmin/coverity_bugs
...
Change some code proposed by Coverity and Cppcheck
2019-08-07 13:49:33 +02:00
qarmin
e0b5b21863
Add some code changes/fixes proposed by Coverity and Clang Tidy
2019-08-07 12:54:30 +02:00
Yuri Roubinski
80080f2655
Allow comma prefix to visual shader's expression parser
2019-08-07 13:50:41 +03:00
Rémi Verschelde
765839b2ad
Merge pull request #31161 from merumelu/default-theme-checkbutton
...
Default theme: make toggle_off_disabled.png the same dimension as other CheckButton images
2019-08-07 08:28:41 +02:00
merumelu
908f0eadba
Default theme: make toggle_off_disabled.png the same dimension as other CheckButton images
2019-08-06 22:12:58 +02:00
Yuri Roubinski
d0dc195da8
Some improvements to Mix visual shader function
2019-08-06 08:06:49 +03:00
Emmanuel Barroga
625b87633e
Fix Wrong Shape Offsets in Tileset
...
Closes #30994
When modifying the properties of a tileset in the editor, some properties only apply to the first tile (such as the shape offset).
This change resolves that issue by traversing the changes to all of the shapes in the tileset instead of the first one.
2019-08-04 12:05:23 -07:00
Chaosus
c34d75b678
Fix outerProduct function in visual shaders
2019-08-01 08:29:05 +03:00
Rémi Verschelde
4c74f50d1a
Merge pull request #30351 from bojidar-bg/30288-override-global-theme
...
Keep track of default theme and project custom default theme seperatelly
2019-07-25 14:54:27 +02:00
clayjohn
ff7c37927a
added pointMesh primitive
2019-07-24 12:14:31 -07:00
Rémi Verschelde
4c943cca2c
Merge pull request #30716 from qarmin/fixed_static_analiser_code
...
Fix some code found by Coverity Scan and PVS Studio
2019-07-23 15:08:44 +02:00
qarmin
aab8da25ad
Fix some code found by Coverity Scan and PVS Studio
2019-07-23 09:14:31 +02:00
Hugo Locurcio
31eb116d49
Make `make_header.py` functional when run from any location
...
This removes the need to `cd` to `scene/resources/default_theme/`
to get the expected result.
2019-07-22 14:02:33 +02:00
Rémi Verschelde
a1b4568ba9
Revert "Tweak SpatialMaterial's default metallic and roughness texture channels"
2019-07-22 11:56:41 +02:00
Rémi Verschelde
d15cf7b672
Merge pull request #30576 from qarmin/lgtm_coverage
...
Changed some code reported by LGTM and Coverity
2019-07-20 12:00:13 +02:00
qarmin
6cbaf7662f
Changed some code showed in LGTM and Coverage
2019-07-20 08:09:57 +02:00
Rémi Verschelde
9384b6ab0e
i18n: Sync translation template with current source
...
Fix a few typos in new strings.
2019-07-19 16:08:40 +02:00
Rémi Verschelde
b79303d39a
Merge pull request #30683 from bojidar-bg/30671-triplanar-binormal
...
Fix binormal sign when using triplanar mapping
2019-07-19 11:22:59 +02:00
Bojidar Marinov
bdffdd7e38
Fix binormal sign when using triplanar mapping
...
Fixes #30671
2019-07-18 19:31:45 +03:00
Bojidar Marinov
ea949ab873
Fix invalid write in AudioStreamSample::save_to_wav
...
Fixes #29955
2019-07-16 20:58:00 +03:00
Rémi Verschelde
7d413f075c
Merge pull request #30590 from clayjohn/particle_life
...
Added individual particle random lifetime
2019-07-15 20:40:57 +02:00
clayjohn
5ef3374258
added individual particle random lifetime
2019-07-14 23:22:40 -07:00
Rémi Verschelde
23f5154de7
Merge pull request #30532 from Chaosus/vs_triplanar
...
Added triplanar uniform texture node to visual shaders
2019-07-15 07:56:06 +02:00
Rémi Verschelde
584ca0f156
Merge pull request #30466 from Chaosus/vs_boolean_funcs
...
Added "Is" and "Compare" functions to visual shaders
2019-07-12 13:20:44 +02:00
Chaosus
9d6e1e3109
Added "Is" and "Compare" functions to visual shaders
2019-07-12 13:43:37 +03:00
Chaosus
0727caadd1
Added triplanar uniform texture node to visual shaders
2019-07-12 12:14:34 +03:00
Rémi Verschelde
34d7484039
Merge pull request #30455 from qarmin/const_reference
...
Pass by reference to const
2019-07-10 15:43:15 +02:00
qarmin
01cc7a996b
Use reference to constant in functions
2019-07-10 11:54:12 +02:00
Hugo Locurcio
28d3a6051c
Use base `Color()` constructors instead of `Color::html()`
...
This results in slightly smaller binaries (-17 KB for an editor binary)
as no strings need to be allocated.
2019-07-08 21:17:10 +02:00
Rémi Verschelde
af80182016
Merge pull request #30407 from qarmin/small_fixess
...
Fixes minor issues found by static analyzer
2019-07-08 08:16:50 +02:00
qarmin
9a77d748c0
Fixes minor issues found by static analyzer
2019-07-07 23:08:51 +02:00
unknown
a96dc30339
Removed a pair of empty braces
2019-07-07 19:51:09 +05:30
Rémi Verschelde
1fa26b969c
Merge pull request #30357 from simonpuchert/spheres
...
Particles / CPUParticles: Return uniform density spheres.
2019-07-07 11:04:46 +02:00
Rémi Verschelde
5ef4537221
Merge pull request #30337 from Chaosus/vs_depth_texture
...
Added DEPTH_TEXTURE to visual shaders
2019-07-06 20:26:21 +02:00
Simon Puchert
5fc8691176
particles: Return uniform density spheres.
...
This matches the previous change for cpu_particles.
2019-07-06 20:05:43 +02:00
Ibrahn Sahir
4e4697b1c4
Added release function to PoolVector::Access.
...
For clarity, assign-to-release idiom for PoolVector::Read/Write
replaced with a function call.
Existing uses replaced (or removed if already handled by scope)
2019-07-06 12:04:27 +01:00
Bojidar Marinov
17901da1a8
Keep track of default theme and project custom default theme seperatelly
...
Fixes #30288
2019-07-05 23:32:52 +03:00
Chaosus
670d8127da
Added DEPTH_TEXTURE to visual shaders
2019-07-05 12:19:20 +03:00
Rémi Verschelde
1ddb610255
Merge pull request #30300 from Calinou/remove-unused-default-theme-icons
...
Remove unused icons in the default theme
2019-07-04 10:30:50 +02:00
Hugo Locurcio
1327e04fd3
Remove unused icons in the default theme
2019-07-03 22:45:28 +02:00
qarmin
1b8b36c771
Fix crash with TileSet(again)
2019-07-03 17:18:36 +02:00
Rémi Verschelde
c08877777d
Merge pull request #26613 from KoBeWi/direction_of_particles
...
Add a Direction property to ParticlesMaterial
2019-07-02 11:33:34 +02:00
Rémi Verschelde
6b30f284a0
Merge pull request #29980 from Dentrax/directed-by-qarmin
...
Fix some editor crashes
2019-07-01 14:59:29 +02:00
Furkan Türkal
7d8d337b2c
fix some crashes
2019-07-01 14:28:29 +03:00
Rémi Verschelde
b4aba3ae7c
Merge pull request #30177 from hbina/use_FALLTHROUGH_macro
...
Applied some of FALLTHROUGH macro usage from #30122
2019-06-29 23:40:08 +02:00
hbina085
9f0c6a6009
Many fallthrough switch cases now have the FALLTHROUGH macro to tell the compiler that this is intended.
2019-06-29 16:08:48 -04:00
Rémi Verschelde
52355c638b
Merge pull request #29380 from bojidar-bg/16086-docs-default-value
...
Add default values to the editor help, docs, and generated RST
2019-06-29 12:28:30 +02:00
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
Chaosus
87f87839a6
Added conditional nodes to visual shaders
2019-04-13 18:17:20 +03:00
Juan Linietsky
c1dcdf6109
No more metadata and dependency indices kept in resources saved.
...
-Node folding is now saved externally together with the properties
-External resources remember their ID when scenes are saved.
2019-04-11 14:36:58 -03:00
yakun.zhang
e5f531620e
Fix collider debug shape didn't changes with collider size changes
2019-04-11 23:31:55 +08:00
Juan Linietsky
5823b5d77d
Bundled VHACD library for convex decomposition.
...
Modified both MeshInstance tools as well as importer to use it instead of QuickHull.
2019-04-10 17:47:28 -03:00
Hugo Locurcio
fa586289c6
Brighten the RichTextLabel color in the default theme
...
This makes its default color match Label's color, which leads to
a more consistent appearance.
This partially addresses #24570 .
2019-04-10 20:00:29 +02:00
Rémi Verschelde
c8994b56f9
Style: Apply new changes from clang-format 8.0
...
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0,
so contributors can keep using those versions for now (they will not undo those
changes).
2019-04-09 17:09:48 +02:00
Rémi Verschelde
918de768a5
Merge pull request #27711 from neikeq/ifdef-clang-tidy
...
Replace a few #if/#elif with #ifdef and "#elif defined"
2019-04-08 12:24:30 +02:00
Max
d9f0d9cdac
Changed autotile priority picking algorithm
2019-04-08 12:26:28 +03:00
qarmin
856a8226a5
Small fixes, mostly dupicated code
2019-04-08 11:03:37 +02:00
Rémi Verschelde
de33c37196
Merge pull request #27565 from SpechtMagnus/tileset_autotile_ignore_flags
...
Added ignore flag / wildcard bit to tileset autotile
2019-04-08 10:04:30 +02:00
Magnus Specht
a3af9d5714
+ Added ignore flags to autotile bitmask
...
+ Added ignore functionality to tileset editor
+ Updated tileset editor autotile tooltip
+ Autotile ignore bits are processed and rendered correctl
2019-04-08 00:41:05 +02:00
PouleyKetchoupp
cb3842833a
Early exit when nothing to draw in style box flat ( fixes #27764 )
2019-04-07 22:23:44 +02:00
Rémi Verschelde
3dabe862af
Merge pull request #26164 from Chaosus/vshader_improvements
...
Major update for visual shader system
2019-04-07 14:24:23 +02:00
Rémi Verschelde
5586e473b5
Merge pull request #27734 from Hendrikto/cleanup
...
Remove unused imports
2019-04-07 12:38:07 +02:00
Rémi Verschelde
f4f244ed4e
Merge pull request #27156 from BastiaanOlij/add_height_map_shape
...
Added height map shape that implement heightmap collision shape
2019-04-07 11:10:21 +02:00
Chaosus
5fd671b8a7
Major improvements for visual shader system
2019-04-07 08:17:38 +03:00