Marc Gilleron
46cee03ad4
Bind missing ArrayMesh.ARRAY_MAX
2017-08-27 04:18:02 +02:00
Rémi Verschelde
565600e844
Cleanup tons of obsolete commented out code
...
Mostly in EditorNode, dropping some obsolete editor plugins and also a
cleanup of ProjectSettings/EditorSettings.
2017-08-26 17:47:57 +02:00
Juan Linietsky
1894157c9f
-Massive clean up to gizmos
...
-Make sure handles are always visible (on top)
-Fixed instanced scene selection (should work properly now)
-Added interpolated camera
-Customizable gizmo colors in editor settings
2017-08-26 00:47:28 -03:00
Hein-Pieter van Braam
cacced7e50
Convert Object::cast_to() to the static version
...
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.
This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.
It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
toger5
aff293a2fd
fixed crash styleBoxTexture binding issue
2017-08-22 22:11:41 +02:00
Rémi Verschelde
4fc0a2d776
Merge pull request #10519 from toger5/remove_addition_border
...
Remove addition border
2017-08-22 08:10:15 +02:00
Rémi Verschelde
df590fc2d3
Merge pull request #10340 from Rubonnek/remove-unnecessary-assignments
...
Removed unnecessary assignments
2017-08-22 00:58:12 +02:00
Juan Linietsky
2cc8309249
Merge pull request #10351 from neikeq/enums-are-for-the-weak
...
ClassDB: Provide the enum name of integer constants
2017-08-21 19:56:08 -03:00
toger5
32f4918f02
added utility funtions for expand margins (in styleBox)
2017-08-21 23:07:08 +02:00
Wilson E. Alvarez
738d2ab969
Removed unnecessary assignments
2017-08-21 15:15:55 -04:00
Hein-Pieter van Braam
67b9d6eef2
Fix color_ramp indexing negative elements
...
The 'pos' variable passed to get_color() and get_offset() can be
negative if the color ramp itself is empty. This causes a lookup in an
empty position in the color Vector which leads to a crash.
We add a check so we never do a lookup in the color Vector if the
gradient is empty.
This fixes #10501
2017-08-21 19:36:40 +02:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Rémi Verschelde
aef7a3178f
Merge pull request #10444 from toger5/styleBoxFlat_corner_detail_value_limitation
...
styleBoxFlat: clamp corner_detail + aa_size
2017-08-19 17:56:48 +02:00
toger5
69c039ffab
styleBoxFlat: clamp corner_detail + aa_size
2017-08-19 15:12:46 +02:00
toger5
ad5b0674f6
Performance styleBoxFlat:
...
- style box flat was always drawn with 8 verts per corner in case it
was a rounded corner... now it uses only one vert if it has no
rounded corner.
2017-08-19 14:46:04 +02:00
Ignacio Etcheverry
18938d3c0e
Removes extra argument from StyleBoxFlat::get_border_color()
2017-08-19 08:59:45 +02:00
Juan Linietsky
3f8efdef49
ProceduralSky now regenerates in a thread (the second time, first does not), closes #9138
2017-08-18 19:16:32 -03:00
Juan Linietsky
e61d547ed0
Make sure local to scene resources are initialized after loading all nodes, fixes #9438
2017-08-18 08:26:41 -03:00
Rémi Verschelde
1a92906b68
Merge pull request #10406 from marcelofg55/closest_power_of_2
...
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-18 08:12:56 +02:00
Marcelo Fernandez
eab850524e
Add closest_power_of_2 func and implement mix_rate/latency on OS X
2017-08-17 19:51:13 -03:00
Juan Linietsky
3a4ff3402d
Oops, fixed wrong color masking problem. Closes #10149
2017-08-17 18:33:59 -03:00
Rémi Verschelde
a21ca962a4
Merge pull request #10265 from leezh/patchnine_stylebox
...
Added Tile and TileFit to StyleBoxes
2017-08-16 18:16:23 +02:00
Rémi Verschelde
a8a6082dc0
Merge pull request #8899 from toger5/BetterFlatStylebox
...
Better flat stylebox with rounded corners
2017-08-16 18:15:04 +02:00
TwistedTwigleg
00f6c85928
Synchronize parameter names in definition and declaration
...
Fixes #10244 .
2017-08-16 17:22:23 +02:00
Rémi Verschelde
f98418f093
Merge pull request #10312 from kbake/pressed-scroll-bar-style
...
Scroll bars now look different on press
2017-08-16 17:16:03 +02:00
toger5
701fb55a10
styleBoxFlat removed light, dark color entirely
2017-08-15 20:11:36 +02:00
toger5
015494ba56
new StyleBoxFlat removed multiBorderColor
...
- removed only the bindings because the drawing code is not done yet
- kept c++ functions for setting individual border color for future implementation
2017-08-15 19:49:24 +02:00
toger5
d637cbb289
new StyleBoxFlat limits for drawing
...
- corner and border are decreased if necassary to achoieve clean stylboxes
- prohibits wired drawing artifacts when using wrong values
- corner radius are relative to the partner corner when they would result in glitches
2017-08-15 19:49:24 +02:00
toger5
356eb47fea
new StyleBoxFlat added more drawing features
...
- corner radius bindings
- shadow
- antiAliasing
- CornerDetail
2017-08-15 19:47:51 +02:00
toger5
059a0496da
Adapted godot to the new StyleBoxFlat
2017-08-15 19:36:34 +02:00
toger5
f05e61ed09
NEW Style Box Flat Implementation
...
- now use polygons!
- renamed blend -> blend_border
- draw_center -> filled
- GDScript biding
2017-08-15 19:36:34 +02:00
M.H. Alkotob
92e74ed250
Fix console warning: Condition !env is true
...
The trivial yet astute fix was suggested by @bojidar-bg in IRC.
Compiling confirms it does the job, so thought I'd push a PR.
2017-08-14 14:48:35 +03:00
kbake
a72d17cf11
Scroll bars now look different on press
2017-08-12 17:46:26 -04:00
Zher Huei Lee
b6ec3f02f0
Added Tile and TileFit to StyleBoxes
...
Was already implemented for Patch9 boxes, but wasn't exposed here.
Allows for use in other GUI elements like panels and buttons.
2017-08-12 09:57:56 +08:00
Rémi Verschelde
b47e6c0dba
Merge pull request #10194 from Keetz/update-default-values
...
Updated default values in SpatialMaterial and Environment
2017-08-11 10:39:12 +02:00
Ignacio Etcheverry
78619a5866
Fixes method definitions with extra number of arguments
2017-08-10 07:17:51 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Rasmus Ketelsen
141aac48ff
Updated default values in SpatialMaterial and Environment
2017-08-09 10:11:36 +02:00
Juan Linietsky
df573f5c3a
-Restored Sprite3D to working function, fixes #2061 , fixes #9738
...
-Restored an alpha scissor property in Material
2017-08-08 17:23:44 -03:00
Ignacio Etcheverry
640a3c46c3
Texture: Fix wrong method bind instance type
2017-08-07 12:01:13 +02:00
Juan Linietsky
8e51c70374
Added missing binding to ImageTexture, closes #8371
2017-08-06 11:38:27 -03:00
Juan Linietsky
475e8b28b2
keep default exported script values unless overriden, closes #8127
2017-08-06 09:33:59 -03:00
Juan Linietsky
5c361485db
-Added GLTF scene support (still missing animations and .glb extension)
...
-Fixed bugs regarding tangent generation in SurfaceTool
2017-08-02 15:43:49 -03:00
Rémi Verschelde
85088275c5
Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-Sync
...
Texture region now updates when changing an Atlas region rect
2017-08-01 00:15:37 +02:00
Andrii Doroshenko (Xrayez)
aa1165a3f5
Bind some useful methods in SurfaceTool to GDScript
...
These include:
* generate_tangents()
* add_to_format()
* create_from()
* append_from()
Reordered and grouped the bindings to match the header for improved readability.
Removed commented out `generate_flat_normals()` method which wasn't present
in the header.
Fixes #9946
2017-07-31 15:50:37 +03:00
Rémi Verschelde
76005a8e75
Style: Apply clang-format on all files
...
Thus fixing some invalid changes that had still made it to the master branch.
2017-07-30 22:53:40 +02:00
Juan Linietsky
f5277e347d
Fixes to glow and auto exposure, closes #9797 , closes #9106
2017-07-26 00:40:32 -03:00
Juan Linietsky
47b2455a62
Good bye chunky fonts, closes #9441
2017-07-25 09:29:27 -03:00
Rémi Verschelde
374cffaa11
Merge pull request #9764 from Noshyaar/pr-fix2
...
Add object type hint for docs
2017-07-24 08:07:32 +02:00
Juan Linietsky
66009706c9
-Ability to set default import presets for type
...
-More presets for scene importer
-Option in scene importer to export root nodes as separate scenes
-Fixed MeshInstance preview
2017-07-23 18:50:25 -03:00