Commit graph

23415 commits

Author SHA1 Message Date
Rémi Verschelde
b5f14cc6f7
Merge pull request #31934 from mitchcurtis/28187
Produce an error when a class has the same name as a Singleton
2019-09-19 20:05:41 +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
Rémi Verschelde
28265fb526
Merge pull request #31202 from azagaya/light-data
Create shadow_vec for altering shadow computation
2019-09-19 20:03:04 +02:00
Rémi Verschelde
fae14153f7
Merge pull request #31188 from codecustard/LineEdit_disable_shortcuts
Add Ability to Enable/Disable Shortcuts and Selection for LineEdit/TextEdit
2019-09-19 19:56:59 +02:00
Rémi Verschelde
318ac6ee13
Merge pull request #31142 from mitchcurtis/assert-message
GDScript: add an optional message parameter to assert()
2019-09-19 19:56:05 +02:00
Rémi Verschelde
996e30ee94
Merge pull request #32019 from RevoluPowered/feature/implement-pbr-materials
FBX Importer - Maya material PBR path is read properly now
2019-09-19 19:02:27 +02:00
Rémi Verschelde
b3ae7c3da3
Merge pull request #31997 from RevoluPowered/feature/fix-blend-shape-disappearing
Fixed blend shapes disappearing in FBX Importer
2019-09-19 18:38:06 +02:00
RevoluPowered
269ba00fd3 Implemented maya stingray support 2019-09-19 16:45:33 +01:00
RevoluPowered
efd6f6dbad Implemented basic texture mapping for PBR material definitions
This reads materials properly from Maya and expands on existing functionality to make this work properly.

aiTextureType_SHININESS no longer used as not appropriate for PBR texture as it is legacy.

This fix will be also present in assimp soon.
2019-09-19 16:45:33 +01:00
RevoluPowered
ff8864e020 Fixed blend shapes disappearing
Co-authored-by: K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com>
2019-09-19 16:34:14 +01:00
Yuri Roubinsky
a1fcac6400
Merge pull request #32191 from Chaosus/fix_typos
Some formatting fixes in visual_shader_nodes.cpp
2019-09-18 19:21:59 +03:00
Yuri Rou
6dcd4379ca Some formatting fixes in visual_shader_nodes.cpp 2019-09-18 19:04:40 +03:00
Michael Alexsander Silva Dias
706f3d1aca
Merge pull request #32096 from Eoin-ONeill-Yokai/bug32089
Fix RichTextLabel Sanitization Runtime Error
2019-09-17 20:56:51 -03:00
Fabio Alessandrelli
1399262ffa
Merge pull request #32176 from Faless/js/fix_export_js
Fix HTML5 export after #30864
2019-09-17 15:22:56 +02:00
Yuri Roubinsky
2861fd9552
Implement shader array support for varyings (#30925)
Implement shader array support for varyings
2019-09-17 09:01:45 +03:00
Ignacio Roldán Etcheverry
3e782c78ae
Merge pull request #32161 from Chaosus/fix_rect
[Mono] Corrected rectangle intersection
2019-09-16 18:11:19 +02:00
Chaosus89
46bb523db7 [Mono] Corrected rectangle intersection 2019-09-16 09:49:04 +03:00
Chaosus
1333ea2a2d Implement shader array support for varyings 2019-09-14 18:23:25 +03:00
Fabio Alessandrelli
e7760deb74 Fix HTML5 export after #30864 2019-09-14 16:47:55 +02:00
Eoin O'Neill
ebc6fb9869 Fix Sanitization Bug
From issue #32089 -- I messed up the property hints by putting them
in the wrong location. Should be working as intended now.
2019-09-11 16:39:24 -07:00
Mitch Curtis
aa8e3e7b0f GDScript: add an optional message parameter to assert()
Before this patch, assert() only took the condition to assert on:

    assert(item_data)

Now, it can optionally take a string that will be printed upon failure:

    assert(item_data, item_name + " has no item data in ItemDatabase")

This makes it easier to immediately see what the issue is by being
able to write informative failure messages.

Thanks to @wiped1 for sharing their patch, upon which this is based.

Closes #17082
2019-09-11 15:37:11 +02:00
Rémi Verschelde
24e1039eb6
Merge pull request #32045 from neikeq/fix-cannot-create-mono-log-file
Mono: Fix unable to create log file due to str_format bug
2019-09-08 22:31:52 +02:00
Ignacio Etcheverry
3dcd7e54f4 Mono: Fix unable to create log file due to str_format bug 2019-09-08 19:40:17 +02:00
Fabio Alessandrelli
e9f49a6d5a
Merge pull request #31993 from Calinou/improve-string-humanize-size
Improve the `String::humanize_size()` method
2019-09-07 23:49:08 +02:00
Ignacio Roldán Etcheverry
da2af72d73
Merge pull request #32022 from neikeq/fix-mono-export-windows-backslash
Mono: Fix PCK assembly paths when exporting from Windows
2019-09-07 21:39:27 +02:00
Ignacio Roldán Etcheverry
7ea5c907a7
Merge pull request #32023 from neikeq/issue-31854
Fix missing method for internal_MonoWindowsInstallRoot
2019-09-07 20:26:28 +02:00
Emmanuel Barroga
b678d68224 Add Ability to Enable/Disable Shortcuts for LineEdit/TextEdit
This PR adds the ability to enable/disable shortcut keys and selection for LineEdit/TextEdit. It also updates the context menu when you disable/enable the shortcut keys or selection.
2019-09-07 06:06:36 -07:00
Ignacio Etcheverry
93897fb884 Fix missing method for internal_MonoWindowsInstallRoot 2019-09-07 02:31:01 +02:00
Ignacio Etcheverry
e439581198 Mono: Fix PCK assembly paths when exporting from Windows
Assembly paths were written to PCK files with backslash as path separator and PackedData only supports forward slash.
This would make exported games unable to find the assemblies.
2019-09-07 02:19:25 +02:00
azagaya
b835868067 Create shadow_vec for altering shadow computation
In 2.1 and 3.0, light_vec could be modified for altering shadow_computations.
But it broke shadows when rotating light. shadow_vec would do the same, but without breaking
shadows in rotated lights if not used.

Add inverse light transformation to shadow vec, so it's not affected when rotating lights;

Added usage define for shadow vec.

For shadow vec working properly when rotating a light, it's needed to multiply it by light_matrix normalized. Added usage define in order to don't do that if shadow_vec not used.
2019-09-06 13:55:49 -03:00
Mitch Curtis
8f5ffeeacc Produce an error when a class has the same name as a Singleton
If you somehow end up with a Singleton.gd that looks like this:

	extends Node

	class_name Singleton

	func foo():
	    pass

You will get an error when using it in another file:

	extends Node2D

	func _init():
	    # Parser Error: Non-static function "foo" can only be called from an instance.
	    Singleton.foo()

This error is confusing. This patch ensures that an error on the class_name line will be produced:

    Parse Error: The class "Singleton" conflicts with the AutoLoad singleton of the same name, and is therefore redundant. Remove the class_name declaration to fix this error.

Fixes #28187.
2019-09-06 17:12:43 +02:00
Hugo Locurcio
9a94fe7d26
Improve the String::humanize_size() method
- Use "B" insted of "Bytes" to be more compact
- Use suffixes that denote a binary prefix
- Make suffixes localizable

This removes the need for the custom
`EditorNetworkProfiler:_format_bandwidth()` method.
2019-09-05 19:48:46 +02:00
Rémi Verschelde
4ee8ecd3ef
Merge pull request #31989 from sparkart/revert-30833-fix_inspector_clear_remote_node
Revert "Fix Clearing Inspector for Remote Node"
2019-09-05 17:38:57 +02:00
Fabio Alessandrelli
768d637a1b
Merge pull request #31870 from JFonS/add_network_profiler
Add network profiler
2019-09-05 16:34:36 +02:00
Emmanuel Barroga
2bac4e1784
Revert "Fix Clearing Inspector for Remote Node" 2019-09-05 06:58:36 -07:00
jfons
8244f535cd Add network profiler 2019-09-05 09:48:36 +02:00
Rémi Verschelde
8bcf6ca953
Merge pull request #31979 from Eoin-ONeill-Yokai/bugfix-31973
CharFXTransform Type Hint Error
2019-09-05 09:46:34 +02:00
Yuri Roubinsky
d1a062662f
Removed useless code from Switch in visual shader (#31984)
Removed useless code from Switch in visual shader
2019-09-05 09:21:32 +03:00
Chaosus89
c188c5597f Removed useless code from Switch in visual shader 2019-09-05 09:07:13 +03:00
Yuri Roubinsky
c2de26822f
Fix formatting error for bool in resulted code of visual shader (#31983)
Fix formatting error for bool in resulted code of visual shader
2019-09-05 08:50:54 +03:00
Chaosus89
bd507739ea Fix formatting error for bool in resulted code of visual shader 2019-09-05 08:32:24 +03:00
Eoin O'Neill
b85b2da988 Bug Fix 31973 Type Hint Error
Fixed a bug introduced in my previous PR involving CharFXTransform not
allowing the use of type hinting. Should now work properly. This should
also help with Godot Mono issues...
2019-09-04 16:42:51 -07:00
Rémi Verschelde
e205cbbd06
Merge pull request #31967 from nekomatata/fix-builtin-script-scene
Load scene if needed when editing recent built-in script
2019-09-04 21:23:12 +02:00
Juan Linietsky
c8e92b802c
Delete ISSUE_TEMPLATE.md
Deleted old style issue template.
2019-09-04 15:29:49 -03:00
Juan Linietsky
083bb0242d Update issue templates 2019-09-04 15:29:05 -03:00
PouleyKetchoupp
ad499f234f Load scene if needed when editing recent built-in script
Fixes #31966
2019-09-04 19:14:47 +02: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
Yuri Roubinsky
038d19988d
Added missing OUTPUT_IS_SRGB and FRONT_FACING inputs to visual… (#31960)
Added missing OUTPUT_IS_SRGB and FRONT_FACING inputs to visual shaders
2019-09-04 18:40:53 +03:00
Chaosus89
bf3024c172 Added missing OUTPUT_IS_SRGB and FRONT_FACING to visual shaders 2019-09-04 18:24:44 +03:00
Yuri Roubinsky
b25b1fb600
Fix parsing array indexing symbol in visual shader expression (#31958)
Fix parsing array indexing symbol in visual shader expression
2019-09-04 17:18:06 +03:00