Ferenc Arn
2f84731177
Use correct mode for DXT1 textures.
...
libsquish, which is used to generate all S3TC textures, works only with RGBA textures.
Fixes #8550 .
2017-04-29 20:01:12 -05:00
George Marques
f7bd21a022
Fix compilation for UWP
2017-04-29 20:15:59 -03:00
Rémi Verschelde
de7eba887e
Merge pull request #8572 from akien-mga/thirdparty
...
Moving more thirdparty stuff (minizip, some single-file external libs) to the thirdparty directory
2017-04-29 22:57:49 +02:00
Juan Linietsky
ea9dd6c0c1
Merge pull request #8579 from godotengine/revert-8375-project_extension
...
Revert "Use .godot as file extension for project files."
2017-04-29 12:57:20 -03:00
Juan Linietsky
6d2f985db4
Revert "Use .godot as file extension for project files."
2017-04-29 17:56:51 +02:00
L. Krause
abe09919bf
Fix HTML5 key events
...
Regression from 86f5ac3
2017-04-29 04:42:50 +02:00
L. Krause
847bd33fdf
Remove GLUT usage in HTML5 platform
2017-04-28 21:54:44 +02:00
Rémi Verschelde
d4029aa51a
Move other lone thirdparty files to thirdparty/misc
...
Also move Box2D ConvexDecomposition contrib code to
thirdparty/b2d_convexdecomp.
2017-04-28 21:19:25 +02:00
Rémi Verschelde
c5f830d6b9
Split thirdparty smaz.c out of compressed_translation.cpp
...
Code comes from 150e125cba/smaz.c
With a small modification to match Godot expectations:
```
diff --git a/thirdparty/core/smaz.c b/thirdparty/core/smaz.c
index 9b1ebc2..555dfea 100644
--- a/thirdparty/core/smaz.c
+++ b/thirdparty/core/smaz.c
@@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include <string.h>
/* Our compression codebook, used for compression */
-static char *Smaz_cb[241] = {
+static const char *Smaz_cb[241] = {
"\002s,\266", "\003had\232\002leW", "\003on \216", "", "\001yS",
"\002ma\255\002li\227", "\003or \260", "", "\002ll\230\003s t\277",
"\004fromg\002mel", "", "\003its\332", "\001z\333", "\003ingF", "\001>\336",
@@ -89,7 +89,7 @@ static char *Smaz_rcb[254] = {
"e, ", " it", "whi", " ma", "ge", "x", "e c", "men", ".com"
};
-int smaz_compress(char *in, int inlen, char *out, int outlen) {
+int smaz_compress(const char *in, int inlen, char *out, int outlen) {
unsigned int h1,h2,h3=0;
int verblen = 0, _outlen = outlen;
char verb[256], *_out = out;
@@ -167,7 +167,7 @@ out:
return out-_out;
}
-int smaz_decompress(char *in, int inlen, char *out, int outlen) {
+int smaz_decompress(const char *in, int inlen, char *out, int outlen) {
unsigned char *c = (unsigned char*) in;
char *_out = out;
int _outlen = outlen;
@@ -192,7 +192,7 @@ int smaz_decompress(char *in, int inlen, char *out, int outlen) {
inlen -= 2+len;
} else {
/* Codebook entry */
- char *s = Smaz_rcb[*c];
+ const char *s = Smaz_rcb[*c];
int len = strlen(s);
if (outlen < len) return _outlen+1;
diff --git a/thirdparty/core/smaz.h b/thirdparty/core/smaz.h
index a547d89..a9d8a33 100644
--- a/thirdparty/core/smaz.h
+++ b/thirdparty/core/smaz.h
@@ -14,7 +14,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#ifndef _SMAZ_H
#define _SMAZ_H
-int smaz_compress(char *in, int inlen, char *out, int outlen);
-int smaz_decompress(char *in, int inlen, char *out, int outlen);
+int smaz_compress(const char *in, int inlen, char *out, int outlen);
+int smaz_decompress(const char *in, int inlen, char *out, int outlen);
#endif
```
2017-04-28 21:19:24 +02:00
Rémi Verschelde
2398eb6ed4
Move core thirdparty files to thirdparty/{minizip,misc}
2017-04-28 21:19:23 +02:00
Rémi Verschelde
0a613ff970
Add a few missing copyright headers
2017-04-28 20:16:30 +02:00
Ferenc Arn
b6259661ce
Detect SSE/SSE2 for libsquish.
2017-04-28 12:47:35 -05:00
Ignacio Etcheverry
65c5dde560
Merge pull request #8562 from neikeq/ame-ame-ame
...
AudioServer: Set singleton to NULL when destructed
2017-04-28 18:25:21 +02:00
volzhs
3223305e5a
Fix to use editor theme instead of handling each UI
2017-04-28 22:42:52 +09:00
Rémi Verschelde
2153feb6fd
Merge pull request #8564 from volzhs/editor-theme
...
Update editor theme
2017-04-28 10:01:04 +02:00
volzhs
be454ba2d6
Update editor theme
2017-04-28 11:01:17 +09:00
Ignacio Etcheverry
231fa92201
AudioServer: Set singleton to NULL when destructed
2017-04-27 21:36:35 +02:00
Paulb23
e37928bb50
Added recent scripts to script editor
2017-04-27 16:07:39 +01:00
Rémi Verschelde
5f15f03d38
Fix theme_data.h formatting via make_header.py
...
Should make clang-format happy.
2017-04-27 08:58:11 +02:00
Pedro J. Estébanez
7b315dc666
Add setting to opt-out of capitalization in the property inspector
2017-04-27 08:46:16 +02:00
Rémi Verschelde
d730ee66a4
Merge pull request #8515 from attilix/folder-file-manager
...
Right-clicking a folder now gives the option Show in file manager
2017-04-27 08:11:05 +02:00
Rémi Verschelde
2feb24953c
Merge pull request #8520 from Hinsbart/tree_tooltips
...
Tree: Ability to add tooltips to TreeItem buttons.
2017-04-27 08:10:11 +02:00
Rémi Verschelde
ed583ffa30
Merge pull request #8553 from Hinsbart/vs_fix
...
Fix recognition of resource extensions.
2017-04-27 08:09:01 +02:00
Daniel J. Ramirez
f045efe007
Add new editor and default theme (WIP)
2017-04-27 08:04:57 +02:00
Andreas Haas
c530d8f43c
Fix recognition of resource extensions.
...
Also removes a related debug print.
2017-04-26 23:07:23 +02:00
Rémi Verschelde
5993a5fac9
Merge pull request #8544 from Paulb23/indent_type_setting
...
Changed indent type settings
2017-04-26 19:31:36 +02:00
Rémi Verschelde
4759be3c4b
Merge pull request #8547 from eska014/html5-pointer-input
...
HTML5: Add (multi-)touch events, fix inverted scrolling
2017-04-26 19:28:17 +02:00
Andreas Haas
29999942a2
Tree: Ability to add tooltips to TreeItem buttons.
...
Adds a tooltip parameter to `TreeItem::add_button()` and set a few tooltips in the Project settings and SceneTree dock.
2017-04-26 19:14:35 +02:00
L. Krause
86f5ac3d74
Implement HTML5 touch events
2017-04-26 16:30:22 +02:00
Ramesh Ravone
204d3ccf5f
Separate fullscreen state for scene & script editor
2017-04-26 17:43:35 +05:30
Paulb23
c4ffe89204
Changed indent type settings
2017-04-26 12:14:03 +01:00
Rémi Verschelde
02c041904f
Merge pull request #8540 from RameshRavone/revert-8538-patch-7
...
Revert " 3.0 recompute_aabb on add_surface"
2017-04-26 09:54:28 +02:00
Ramesh Ravone
cc973b461b
Revert " 3.0 recompute_aabb on add_surface"
2017-04-26 13:18:01 +05:30
Rémi Verschelde
ffbe6660cf
Merge pull request #8538 from RameshRavone/patch-7
...
3.0 recompute_aabb on add_surface
2017-04-26 08:57:10 +02:00
Rémi Verschelde
5c7e6c9212
Merge pull request #8537 from volzhs/tr-fallback-master
...
Fix wrong fallback for locale
2017-04-26 08:15:05 +02:00
Rémi Verschelde
4856613109
Merge pull request #8535 from volzhs/android-obb-master
...
Fix error or download again if use obb for Android
2017-04-26 08:14:45 +02:00
Rémi Verschelde
88d362b232
Merge pull request #8531 from RameshRavone/patch-5
...
Settings: Moving Poly Editor into Editors category
2017-04-26 08:14:04 +02:00
Rémi Verschelde
1a47087a73
Merge pull request #8530 from volzhs/auto-accept-quit-master
...
Fix auto_accept_quit option to work
2017-04-26 08:13:52 +02:00
Rémi Verschelde
cdf0fbd8e8
Merge pull request #8522 from NNesh/mus
...
Fix AudioPlayer bugs with OGG
2017-04-26 08:13:30 +02:00
Rémi Verschelde
95683f051c
Merge pull request #8519 from Paulb23/change_case_issue_8079
...
Ability to Convert Case, issue 8079
2017-04-26 08:11:41 +02:00
Rémi Verschelde
692b99fa0c
Merge pull request #8539 from clayjohn/doc_surfacetool
...
Added documentation for SurfaceTool
2017-04-26 07:38:07 +02:00
clayjohn
478817abad
added documentation for SurfaceTool
2017-04-25 21:35:25 -06:00
Ramesh Ravone
930ad8fc8c
3.0 recompute_aabb on add_surface
2017-04-26 07:57:13 +05:30
volzhs
ec1c7ce6c3
Fix wrong fallback for locale
2017-04-26 04:48:03 +09:00
volzhs
889ce29fc2
Fix error or download again if use obb for Android
2017-04-26 04:06:45 +09:00
L. Krause
a99b6b2063
Reimplement HTML5 mouse input without GLUT
...
Fixes inverted scrolling on Chromium
2017-04-25 14:48:46 +02:00
Ramesh Ravone
ff282571c6
Settings: Moving Poly Editor into Editors category
2017-04-25 17:48:08 +05:30
NNesh
6cf0c62221
Fix AudioPlayer.get_pos() always returns 0
2017-04-25 17:02:45 +05:00
volzhs
de4267fc99
Fix auto_accept_quit option to work
...
auto_accept_quit value is set first properly with GLOBAL_DEF("application/auto_accept_quit", true) in main.cpp
after that it's reset to true in SceneTree:init() whatever value was.
2017-04-25 20:05:22 +09:00
Paulb23
4b8152d599
Ability to Convert Case, issue 8079
2017-04-25 10:18:57 +01:00