Commit graph

2826 commits

Author SHA1 Message Date
Poommetee Ketson f2c1fd2e8f
Merge pull request #13295 from Calinou/tweak-camera-node-defaults
Tweak the default camera node settings
2017-11-26 20:53:28 +07:00
Hugo Locurcio 541df26184
Tweak the default camera node settings
- Increase FOV to 70
- Put the Z-near plane at 0.05 meters
2017-11-25 23:48:30 +01:00
Pedro J. Estébanez 922cf9fbb0 Fix crash on node duplication
That happened when an instanced scene was being duplicated while it also contained nodes added to it in the scene holding the instance.

Plus:
- Add comments about the logic behind all this.
- Move the null guard to where it can protect the most, but consider it a runtime error rather that a situation we expect.

Fixes #13282.
2017-11-25 21:14:35 +01:00
Pedro J. Estébanez d0e09d84f0 Implement onion skinning for the animation editor 2017-11-25 13:25:14 +01:00
Juan Linietsky bc2e8d99e5 Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
2017-11-25 00:09:40 -03:00
Pedro J. Estébanez ff03a0bc7b Implement backup/restore for animated values 2017-11-25 02:18:28 +01:00
Dmitry Koteroff e3b0214f40 A few small adjustments to file dialogs:
a) Added Backspace key support for Tree-based file dialog.
b) Fixed issue inability to select a folder in project manager (always previous folder was selected instead).
c) Open Directory mode: changed "Open" to "Select Current Folder"
d) Block "Open" button when inappropriate content is selected (for example, file when in open folder mode, or folder when in open files mode)
2017-11-24 21:21:55 +03:00
geequlim f3588b6b65 Fix style error with MenuButton in default theme 2017-11-24 19:31:20 +08:00
Ruslan Mustakov e967dbca6f Fix TileMap and TileSet ClassDB bindings 2017-11-24 11:43:15 +07:00
Paulb23 f6f475e6ba Fixed not be able to unfold the last line 2017-11-23 20:37:08 +00:00
Sofox 3551fc6af0 Fixed #13167. Restored ParallaxLayer mirroring that was broken by pull request #12421 2017-11-23 01:52:34 +00:00
Juan Linietsky 81213917d1 change default propagation value 2017-11-22 14:41:45 -03:00
Rémi Verschelde 2ea5ac17e8
Merge pull request #13159 from AndreaCatania/ray
Removed type_mask and fixed some variable name
2017-11-22 16:40:20 +01:00
Rémi Verschelde 09153f1143
Merge pull request #12129 from willnationsdev/duplicate-fix
Node.duplicate(): instanced node's descendants' props = original's runtime values.
2017-11-22 15:42:31 +01:00
Rémi Verschelde e38efe22c7
Merge pull request #12301 from MarianoGnu/master
Implement auto-tiling
2017-11-22 15:31:46 +01:00
Will Nations e1c907ec73 Node.duplicate(): instanced node's descendants' properties now update
w/ original's runtime values.
2017-11-21 23:04:40 -06:00
ianb96 19c92c69c3 code folding scrolling fixes 2017-11-21 17:09:04 -05:00
AndreaCatania d6e413bb9c Removed type_mask and fixed some variable name 2017-11-21 22:56:40 +01:00
Rémi Verschelde 613d374bc5
Merge pull request #12284 from bojidar-bg/allow-subproperty-set
Allow for getting/setting "dotted" properties of objects
2017-11-21 22:44:14 +01:00
Bojidar Marinov 0cf9597758
Allow for getting/setting indexed properties of objects using get/set_indexed
Performance is around the same as using pure set() through GDScript.
2017-11-21 20:58:21 +02:00
George Marques 20b07a1fb5
Merge pull request #13121 from Krakean/change_filedialog_removedot
Remove the "." and "/" (at the end of folders name) from file manage dialog (open scene, open file, ...)
2017-11-21 12:30:20 -02:00
Rémi Verschelde 25b860ee2a
Merge pull request #13132 from Chaosus/preserve_dupsignals_flags
Preserve duplicate signal flags
2017-11-21 14:25:50 +01:00
Rémi Verschelde fee2f367af
Merge pull request #13134 from Chaosus/fixinvalidscroll
Fix invalid scroll
2017-11-21 14:25:15 +01:00
Chaosus 9240b7f2d1 Fix invalid scroll 2017-11-21 12:52:46 +03:00
Chaosus fc74dbabd5 Preserve duplicate signal flags 2017-11-21 11:46:19 +03:00
Bernhard Liebl 80ad8afc85 Native pan and zoom for macOS 2017-11-21 09:11:39 +01:00
Dmitry Koteroff 20bda9a2ba Remove the "." from file manage dialog (open scene, open file, ...)
Also removed the "." from game control's FileDialog component.

Also remove the "/" at the end of folders name.
2017-11-21 05:32:44 +03:00
Rémi Verschelde ddc7793bba
Merge pull request #13105 from Krakean/master
Files list: Add "New Folder.." popup when nothing under mouse cursor
2017-11-20 22:44:23 +01:00
Daniel J. Ramirez e5de5b4908 Visual fixes
Added some icons (Including the onion one)
Fixed text editor ellipsis style and editor tabs
2017-11-20 13:03:22 -06:00
Dmitry Koteroff d67b602f2f Add "New Folder.." to right mouse button click on project fileslist panel _WHEN_ no any file/folder is under mouse cursor. 2017-11-20 21:25:13 +03:00
Rémi Verschelde 00be297b84
Merge pull request #12421 from TheSofox/parallax-overhaul
Overhauled the ParallaxBackground system
2017-11-20 15:36:03 +01:00
Poommetee Ketson 44986081f2
Merge pull request #13082 from groud/fix_err_class_registration
Fixes a double class registration error
2017-11-20 17:40:56 +07:00
Gilles Roudiere f1ec8ff6e8 Fixes a double class registering error 2017-11-20 11:20:38 +01:00
Rémi Verschelde 341bf71dc1
Merge pull request #13023 from tom95/particles-align-y-12865
Make particles with DISABLE_Z active respect ALIGN_Y. Fixes #12865
2017-11-20 10:59:34 +01:00
Mariano Suligoy bcfb0a09f8 Implement auto-tiling 2017-11-20 06:27:47 -03:00
Rémi Verschelde 7b5c447301
Merge pull request #12952 from bojidar-bg/12392-export-enums
Allow exporting enums from GDScript
2017-11-20 09:11:46 +01:00
Rémi Verschelde 6d105aba9a
Merge pull request #12983 from ianb96/scene_add_tab
Add Scene button and tab scrolling
2017-11-20 09:11:31 +01:00
Rémi Verschelde d6dc909ebe
Merge pull request #12984 from willnationsdev/richtextlabel-hover-signal
RichTextLabel: Adding ability for single meta hovering
2017-11-20 09:10:52 +01:00
Rémi Verschelde 49a73182d3
Merge pull request #13041 from RandomShaper/unify-node-duplicate
Let SceneTreeDock duplicate nodes via Node::duplicate()
2017-11-20 08:59:40 +01:00
Rémi Verschelde b1f037eeb9
Merge pull request #13049 from tagcup/pathfollow2d_parallel_transport
Use parallel transport in PathFollow2D.
2017-11-20 08:59:33 +01:00
Rémi Verschelde 414b388499 Fix TextEdit::cursor_set_line bindings
As spotted by @neikeq - fixes #13068.
2017-11-20 08:11:31 +01:00
Rémi Verschelde 360343fb5a
Merge pull request #13065 from DoctorAlpaca/master
Fix the prevention for sliding on slopes in the 2d version of move_and_slide
2017-11-20 07:58:44 +01:00
Juan Linietsky 98cb49283d Ability to change indirect light energy. 2017-11-19 21:46:00 -03:00
Eric Wiltfang 7dd9e5c57c Fix the prevention for sliding on slopes in the 2d version of move_and_slide
Done by using the same method the 3d counterpart uses.

Fixes #13063.
2017-11-20 01:42:44 +01:00
Rémi Verschelde d826b043ad
Merge pull request #12950 from ianb96/code_folding
Code Folding
2017-11-20 00:15:10 +01:00
Rémi Verschelde d2bc961388
Merge pull request #13000 from djrm/pr_import_fixes
import fixes
2017-11-19 21:59:11 +01:00
Tom Beckmann 93be4982d0 Make particles with DISABLE_Z active respect ALIGN_Y. Fixes #12865 2017-11-19 21:32:25 +01:00
Pedro J. Estébanez 5a0be858f4 Let SceneTreeDock duplicate nodes via Node::duplicate()
Helps with #11182.
2017-11-19 21:30:17 +01:00
Pedro J. Estébanez 7286966971 Remove out-of-logic assignment of instance's original scene 2017-11-19 21:30:17 +01:00
Ferenc Arn 4e87f471d7 Use parallel transport in PathFollow2D.
Fixes #12995.
2017-11-19 14:38:53 -05:00
Rémi Verschelde 618450caec
Merge pull request #13040 from RandomShaper/fix-signals-dup
Fix duplication of signals
2017-11-19 20:14:29 +01:00
Pedro J. Estébanez 803b3934d6 Fix duplication of signals
- Partially revert 6496b53549, adding a comment about why duplications of signals must happen as a second phase.
- Add fallback logic for connections to nodes not in the duplicated hierarchy.
- Remove redundant call to `Node::_duplicate_signals()`.

Fixes #12951.
2017-11-19 15:07:05 +01:00
Gilles Roudiere 8d1f2b1857 Rework the canvas_item API for further improves to the canvas item editor 2017-11-19 13:36:31 +01:00
Ian f8e8b7d1a2 add scene button and tab scrolling 2017-11-18 20:31:51 -05:00
Ian 1e59169d2d scrolling fixes 2017-11-18 20:07:53 -05:00
kbake a5973f4071 change expand_to_len property to add on nonzero...also rename to
expand_to_text_length and shift window on expand to see all text
2017-11-18 18:57:48 -05:00
Ian d350f506a0 TextEdit code folding 2017-11-17 21:49:43 -05:00
Daniel J. Ramirez 62eda56e67 Fixed mesh importing when multiple materials are present 2017-11-17 18:50:19 -06:00
Rémi Verschelde 0968c8d2f6
Merge pull request #12982 from tagcup/aabb_rename
Rename Rect3 to AABB.
2017-11-17 20:04:29 +01:00
Juan Linietsky 0e04316214
Merge pull request #12962 from SaracenOne/gui_focus_next_prev
Add manual overrides for focus_next and focus_previous
2017-11-17 15:03:05 -03:00
Ferenc Arn d28763a4c1 Rename Rect3 to AABB.
Fixes #12973.
2017-11-17 11:01:41 -05:00
Will Nations eaea646648 Adding ability for single meta hovering 2017-11-17 09:37:41 -06:00
Bojidar Marinov e4a36d0eda
Allow exporting enums from GDScript
Use as `export(E) ...`
Closes #12392
2017-11-17 14:33:36 +02:00
Rémi Verschelde 139a957802
Merge pull request #12763 from remorse107/Code-Complete
Modified code completion for better tabbing with immediate hints.
2017-11-17 00:33:27 +01:00
Rémi Verschelde 49cea443a9
Merge pull request #12870 from Nibodhika/master
Fixing tilemap rotation for non top-left tiles.
2017-11-17 00:05:23 +01:00
Juan Linietsky 5fa7cf35b2
Merge pull request #12960 from tagcup/fix_gi_emission_energy
Fix energy not affecting emissive texture in GI baker.
2017-11-16 08:41:59 -03:00
Saracen e4201734df Add manual overrides for focus_next and focus_previous on controls similar to what can already be done with focus neighbours. 2017-11-16 09:45:52 +00:00
Rémi Verschelde 3002130a6d
Merge pull request #12957 from bojidar-bg/12928-numeric-underscores
Allow underscores in GDScript numeric literals
2017-11-16 09:04:31 +01:00
Ferenc Arn 1980a54dbb Fix energy not affecting emissive texture in GI baker.
Also fix emission_tex being invalid always due to wrong reference type.

Fixes #10534.
2017-11-15 20:01:53 -05:00
Rémi Verschelde 15a20f9746 Remove obsolete ButtonArray theming
ButtonArrays have been removed in 3.0.
[ci skip]
2017-11-15 22:53:38 +01:00
Bojidar Marinov 443ce6fef2
Allow underscores in GDScript numeric literals
Closes #12928
2017-11-15 22:53:08 +02:00
Juan Linietsky 7010ee3cb9 -Ability to choose operator for emission, closes #10441
-Ability to use proper operator for GI Probe, closes #10534
-Closes #12938 as it's no longer needed (thanks for the work though)
2017-11-15 12:39:24 -03:00
Vito 5515d28107 Fixing tilemap rotation for non top-left tiles. 2017-11-15 09:22:07 +00:00
Juan Linietsky 6277e6d40a Ability to update parts of an array, and set arrays as dynamic draw 2017-11-14 17:26:35 -03:00
Juan Linietsky 04edfc090b Finalized ability to convert from CanvasItem/Spatial/Particles materials to ShaderMaterial, closes #10242 2017-11-14 15:45:30 -03:00
Rémi Verschelde bd775aa0bd
Merge pull request #12898 from RandomShaper/improve-anim-loop
Change AnimationPlayer looping logic
2017-11-14 12:29:02 +01:00
Rémi Verschelde 4685674389
Merge pull request #12842 from ianb96/shader_editor_fix
Shader Editor context menu and line operations and style fix
2017-11-14 07:33:04 +01:00
Robert Morse 3372413037 Modified code completion for better tabbing, and removal of need to backspace and re-enter '(' to get code completion hints. 2017-11-13 18:19:11 -06:00
Ian 12b4e232b2 fix signals disconnecting on changing target node type 2017-11-13 17:44:58 -05:00
Rémi Verschelde f3d812e3a0
Merge pull request #12811 from Chaosus/quadsize
Add size to QuadMesh
2017-11-13 22:42:32 +01:00
Rémi Verschelde 3c64635003
Merge pull request #12903 from YeldhamDev/scrollcontainer_arrangement
Small arrangement in ScrollContainer
2017-11-13 21:28:32 +01:00
Rémi Verschelde 03a080547d
Merge pull request #12014 from hi-ogawa/fix-video-playback
Fix video playback
2017-11-13 19:57:18 +01:00
Rémi Verschelde 390e957ba4
Merge pull request #12893 from Chaosus/dupsignals
Duplicate signals fixes
2017-11-13 17:13:11 +01:00
Chaosus 6496b53549 Duplicate signals fixes 2017-11-13 18:42:07 +03:00
Michael Alexsander Silva Dias f2f18261c3 Small arrangement in ScrollContainer. 2017-11-13 12:15:48 -02:00
volzhs 710c87ec99 Fit stylebox on ItemList 2017-11-13 22:24:58 +09:00
Chaosus 06ce2e339e Added size to QuadMesh 2017-11-13 16:19:50 +03:00
Pedro J. Estébanez e477fa2bd2 Change AnimationPlayer looping logic
So now it can seek to the actual values at time=length when instructed to seek to time=N*length.

That is, formerly in the editor you had no way of seeing the actual state at time=length other than temporarily disabling looping. Now you can preview both endpoints.

As a side effect, the values at anim time 0 will only be applied when actually seeking to 0, instead of at every time=N*length, as formerly. No issue.
2017-11-13 12:49:31 +01:00
Bojidar Marinov 7bbde636e8 Make Tween::interpolate_property's able to get() the initial value
To use this behavior, pass `null` in place of the initial_value parameter.
2017-11-13 11:23:46 +02:00
Rémi Verschelde 47e5b43160
Merge pull request #12852 from djrm/pr_import_fixes
Update meshes when reimporting,
2017-11-12 21:17:58 +01:00
Rémi Verschelde 81fb6e474f
Merge pull request #12862 from YeldhamDev/text_property
Made text in TextEdit a property
2017-11-12 21:15:29 +01:00
Rémi Verschelde e9392dd876
Merge pull request #12858 from dfleury2/master
fix: Updates dynamic_font_stb to use get_extension, and memnew
2017-11-12 21:06:03 +01:00
Daniel J. Ramirez 2932cc79ee Update meshes when reimporting,
Save scene preview even when not doing save and play.
2017-11-12 13:41:44 -06:00
Michael Alexsander Silva Dias 2a26931246 Made text in TextEdit a property. 2017-11-12 13:10:26 -02:00
Juan Linietsky 48d57e4a30 -Added ramp fadeout in AudioStreamPlayer, removes clips on audio restart
-Fixed bug in AudioStreamPlayerSampler not completely writing the target buffer if sample ends, fixes #12307
2017-11-12 11:11:45 -03:00
Juan Linietsky 09e6ce693d Set ambient contribution by default to 1, fixes #11850 2017-11-12 08:26:45 -03:00
D. Fleury f75028a34c fix: Updates dynamic_font_stb to use get_extension, and memnew 2017-11-12 11:45:29 +01:00
Michael Alexsander Silva Dias 920f3f6546 Added "is_readonly()" to TextEdit and made it a property. 2017-11-11 22:14:14 -02:00
Ian 94b3e786cd shader editor context menu and line operations and style fix 2017-11-11 14:46:59 -05:00
Ian fc299b4f37 add context menu enable getters, setters, and properties in LineEdit and TextEdit 2017-11-11 03:30:59 -05:00