Rémi Verschelde
eaf803f71e
style: Various other PEP8 fixes in Python files
...
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
2016-11-02 22:30:34 +01:00
Rémi Verschelde
e259bf8bbb
style: Fix PEP8 whitespace issues in Python files
...
Done with `autopep8 --select=E2,W2`, fixes:
- E201 - Remove extraneous whitespace.
- E202 - Remove extraneous whitespace.
- E203 - Remove extraneous whitespace.
- E211 - Remove extraneous whitespace.
- E221 - Fix extraneous whitespace around keywords.
- E222 - Fix extraneous whitespace around keywords.
- E223 - Fix extraneous whitespace around keywords.
- E224 - Remove extraneous whitespace around operator.
- E225 - Fix missing whitespace around operator.
- E226 - Fix missing whitespace around operator.
- E227 - Fix missing whitespace around operator.
- E228 - Fix missing whitespace around operator.
- E231 - Add missing whitespace.
- E231 - Fix various deprecated code (via lib2to3).
- E241 - Fix extraneous whitespace around keywords.
- E242 - Remove extraneous whitespace around operator.
- E251 - Remove whitespace around parameter '=' sign.
- E261 - Fix spacing after comment hash.
- E262 - Fix spacing after comment hash.
- E265 - Format block comments.
- E271 - Fix extraneous whitespace around keywords.
- E272 - Fix extraneous whitespace around keywords.
- E273 - Fix extraneous whitespace around keywords.
- E274 - Fix extraneous whitespace around keywords.
- W291 - Remove trailing whitespace.
- W293 - Remove trailing whitespace.
2016-11-02 22:28:28 +01:00
Rémi Verschelde
1185da656f
Merge pull request #6988 from RandomShaper/2.1
...
Fix shader tokenizer/compiler reporting wrong error location (2.1)
2016-11-02 22:10:00 +01:00
Pedro J. Estébanez
887b1de1db
Add/expose VisualServer::get_default_clear_color()
...
(cherry picked from commit 753ba67d65
)
2016-10-31 00:00:55 +01:00
Pedro J. Estébanez
a130520a7c
Fix shader tokenizer/compiler reporting wrong error location
...
Raname shader tokenizer methods for clarity
2016-10-30 22:09:23 +01:00
Rémi Verschelde
5a49e45d21
SCsub: Add python shebang as a hint for syntax highlighting
...
Also switch existing shebangs to "better" /usr/bin/env python.
(cherry picked from commit fc8ccd5b8c
)
2016-10-30 14:51:34 +01:00
Ignacio Etcheverry
55a5631986
Bindings: Fix missing default value
...
(cherry picked from commit 068b58b3ce
)
2016-10-17 20:43:25 +02:00
Ariel Manzur
cf427eeb7a
bind method canvas_item_set_sort_children_by_y
...
(cherry picked from commit 1f9e16119f
)
2016-10-09 17:39:17 +02:00
Fabio Alessandrelli
359b5f3b25
Expose more 2D/3D physics options in project settings
...
(cherry picked from commit 1d09c27ba4
)
2016-10-09 17:33:47 +02:00
Victor Seiji Hariki
a3c58999e2
Now ignoring remaining collision shapes.
...
(cherry picked from commit e5edd50d62
)
2016-10-09 17:22:48 +02:00
anneomcl
12edde80f2
Fix for #6158 . Converting Vector2 to Size2 for scaling functions.
...
(cherry picked from commit aa5ade834c
)
2016-10-09 17:18:54 +02:00
Ovnuniarchos
5653ac41f9
Mouse hotspot is not honored.
...
(cherry picked from commit 8fcd92c38a
)
2016-09-18 23:15:32 +02:00
Pedro J. Estébanez
c44757c2b7
Expose light shadow color to canvas item shaders
...
(cherry picked from commit 0960887625
)
2016-09-18 23:11:08 +02:00
Johan Manuel
a2b8ef6d51
Fix some warnings
2016-07-25 16:46:26 +02:00
Alex Piola
ffdd9f16dd
Fix for incorrect velocity report due to a typo.
...
Closes #5854
2016-07-24 12:53:07 +02:00
Rémi Verschelde
3725114a16
Merge pull request #5383 from Ovnuniarchos/OptimizeOneWay
...
Optimized one-way collision loops.
2016-07-18 16:37:50 +02:00
Juan Linietsky
0e6e0ed0e5
Merge pull request #5533 from Hinsbart/cursor_atex
...
Can use AtlasTextures as custom mouse cursor.
2016-07-10 12:41:57 -03:00
Rémi Verschelde
f40f360a2c
Remove unused variables (fourth pass) + dead code
...
Also fix a potential regression from 3fcb9b1ec1
.
2016-07-08 16:47:55 +02:00
Andreas Haas
91add16300
Can use AtlasTextures as custom mouse cursor.
...
fixes #3957
2016-07-03 19:36:12 +02:00
Ovnuniarchos
b09b449615
Optimized one way collision loops.
2016-06-24 08:43:23 +02:00
Juan Linietsky
d6225b1e00
Improved binding system (ObjectTypeDB::bind_method) to be friendlier to statically typed languages, should help in the Mono integration.
...
Disabled by default.
2016-06-22 23:13:41 -03:00
Juan Linietsky
4b05181397
Fixed a stupid bug with segment-segment collision in SAT physics, closes #4801 , closes #4984
2016-06-18 18:32:10 -03:00
Juan Linietsky
b4b80625d1
Change hash grid in 2D physics to contemplate large objects as separate cases, to avoid huge memory and performance penalty. Fixes #4662
2016-06-18 17:21:53 -03:00
Rémi Verschelde
c3bf11d4d4
Drop fully commented-out files
...
Part of #5272
2016-06-18 20:23:49 +02:00
Rémi Verschelde
80727b6896
Drop empty .cpp files for header-only classes
...
Part of #5272
2016-06-18 20:00:08 +02:00
Rémi Verschelde
b7dbf9207a
Drop empty files that are not used anywhere
...
Part of #5272
2016-06-18 19:46:30 +02:00
Rémi Verschelde
a7fc04626a
Add missing license headers in our source files ( #5255 )
...
Also removes a couple wrong Godot headers from third-party source files.
2016-06-18 14:46:12 +02:00
Juan Linietsky
3b5f1afb5c
Fixed fractional offset not being reset in ringbuffer resamples, closes #4764
...
Probably fixes other streamplayer issues too.
2016-06-17 20:38:10 -03:00
Juan Linietsky
64b4253dbf
changed visual server free() to free_rid() like in the other servers. Fixes #4917
2016-06-13 22:12:56 -03:00
Ovnuniarchos
471ab4e6ff
Documented many Physics2D* classes
2016-06-12 20:24:19 +02:00
Geequlim
fdf914e53e
Add texture region support for stylebox render
2016-06-05 00:45:53 +08:00
Juan Linietsky
8be2fabbe5
Changed import workflow
...
-Rearrange favorites in fs dock with drag and drop
-Removed import -> sub-scene, moved to scenetree contextual menu
-Removed import -> re-import , moved and integrated to FS dock
-Added ability in FS dock to re-import more than one resource
simultaneously
-Added ability to drag from native filesystem explorer to Godot, only
works on Windows though
-Removed scene reimport merge options, never worked well. Eventually
merging materials should be re-added
-Added ability to set custom root node type when importing scenes
-Re-Import is now automatic, can be configured back to manual in editor
settings
-Added resource previews in property list for many resource types
2016-05-27 14:19:11 -03:00
Carter Anderson
7df5249779
Remove noisy print
2016-05-23 22:56:32 -07:00
Juan Linietsky
d3495b128a
-Improve resource previews
...
-Also fixed draw_texture_rect() tile parameter
2016-05-23 17:11:49 -03:00
Juan Linietsky
eacb8f04c4
Merge remote-tracking branch 'origin/master'
2016-05-21 22:34:55 -03:00
Juan Linietsky
a75f896338
First version of Profiler
...
It is now possible to profile GDScript as well as some parts of Godot
internals.
2016-05-21 21:18:16 -03:00
Hubert Jarosz
33403d91f7
remove trailing whitespace
2016-05-21 15:29:25 +02:00
Rémi Verschelde
99e31e1005
Merge pull request #4547 from neikeq/pr-wrong-debug-methods
...
Fix wrong return and argument types in documentation
2016-05-05 09:27:14 +02:00
Juan Linietsky
89d87294db
ability to shrink all images x2 on load
...
this is for extreme cases when running on devices with very low video
memory, so you can still retain compatibility.
2016-05-04 12:37:07 -03:00
Ignacio Etcheverry
1e752c0120
Fix wrong return and argument types in documentation
2016-05-04 15:35:09 +02:00
Josh Grams
a7b4127481
RigidBody2D (add_force, set_inertia): new methods.
2016-04-26 08:15:15 -04:00
Josh Grams
ffaced87a6
RigidBody2D: rename apply_impulse(pos) to offset.
2016-04-24 04:36:51 -04:00
Josh Grams
f7d31cec38
RigidBody2D: add and bind get_inertia() method.
...
You can't set this value very well, since it's automatically computed
from the mass and the collision shapes. But since the values are higher
than many people might suspect, so being able to read it helps estimate
the amount of torque you might need to apply.
2016-04-20 20:49:37 -04:00
Rémi Verschelde
e07266f6c1
Merge pull request #4273 from bojidar-bg/add-layers-and-masks-to-3d
...
Port collision and layer masks to 3D
2016-04-12 13:17:26 +02:00
Marc Gilleron
d239e6bc0e
Fixed #4163 (intersect_shape crashes on results limit)
2016-04-12 02:18:41 +02:00
Bojidar Marinov
f7c3d6329c
Port collision and layer masks to 3D, fixes #1759
...
Raycasts now have type_mask and layer_mask. Areas - collision_mask and layer_mask. PhysicsBodies needed only collision_mask.
2016-04-09 22:11:12 +03:00
Rémi Verschelde
aec4f57f95
Merge pull request #3528 from SaracenOne/baked_light_realtime_colourize
...
Ability to colourize baked lighting in real time.
2016-03-15 10:22:09 +01:00
Saracen
24bc7d8db7
Fix 'FLAG_RECEIVE_SHADOWS' flag for GeometryInstances so that turning it off now correctly disables shadows from affecting the instance.
2016-03-12 16:51:17 +00:00
Rémi Verschelde
aaad24e6fb
Merge pull request #3865 from Marqin/coverity
...
[Coverity] fixed 11 of 537 potential bugs found by Coverity
2016-03-10 16:15:49 +01:00
Rémi Verschelde
b5f873c9d1
Merge pull request #3999 from neikeq/issues_3650_3990
...
Fix crash when resizing ConcavePolygonShape2D segments
2016-03-10 06:29:20 +01:00