Commit graph

202 commits

Author SHA1 Message Date
geequlim 29cd034e23 Fix crash when edit remote object instance after debugger stoped 2017-09-03 00:47:45 +08:00
geequlim 1473e23df8 Fix continous update of the remote properties
Remove useless debugger property panel
Rename Remote Inspector to Live Scene Tree
2017-09-02 22:19:17 +08:00
Rémi Verschelde e59bb87fb6 Merge pull request #10690 from volzhs/editor-font
Replace default editor font to NotoSansUI
2017-08-31 11:50:44 +02:00
Juan Linietsky df173f194f Moved mirror and rotations to the tile mapen, to avoid taking up too much toolbar space, fixes #6461
(cherry picked from commit dbb6a39722)
2017-08-30 21:09:08 +02:00
volzhs 30f4a16cdf Use Noto fonts for Arabic, Hebrew and Thai 2017-08-29 21:01:31 +09:00
volzhs 110da7f816 Replace default editor font to NotoSansUI 2017-08-29 17:42:55 +09:00
Rémi Verschelde 9d598833d2 Use HTTPS URL for Godot's website in the headers 2017-08-27 14:11:45 +02:00
Rémi Verschelde a9521ef996 Buildsystem: Reduce verbosity of font and translation generation
(cherry picked from commit 21e53c4267)
2017-08-27 13:46:16 +02:00
Juan Linietsky e8fb68e038 simplify the way window is allowed to steal focus, no longer relying on project.godot. Closes #9459
(cherry picked from commit 533014b88c)
2017-08-27 12:53:45 +02:00
Rémi Verschelde 215ce6ab2b Rename "Default" window placement mode to "Top Left"
It is no longer the default value ;)

(cherry picked from commit 686294e4f2)
2017-08-27 12:47:52 +02:00
Andreas Haas 8ed6ddd49f SceneTreeEditor: Fix node_selected signal emission.
Fixes #10131

(cherry picked from commit a80371ce0a)
2017-08-27 12:46:01 +02:00
Juan Linietsky f6575f8d9a Fixes crash related to animatio editor, closes #8687
(cherry picked from commit cf2fdcb63e)
2017-08-27 12:26:07 +02:00
Jakub Grzesik da15a1b50d spatial selection if subscene geometry is far from origin
(cherry picked from commit 78e72c8e79)
2017-08-27 12:23:09 +02:00
Vasiliy Makarov bbf66945e7 more efficient atlas packing algorithm 2017-08-25 09:57:55 +03:00
Hein-Pieter van Braam 364f2e8082 Correct hash behavior for floating point numbers
This backports the work in #7815 and the subsequent fixes in #8393

The following program now works as expected in this branch in both
release_debug and debug mode:

```gdscript
        print(sqrt(-1))
        print(sqrt(-1))

        var simple1=asin(10.0)
        var simple2=acos(10.0)
        print(simple1)
        print(simple2)
```

And successfully prints -nan 4 times

This fixes #9580 and fixes #8925
2017-08-20 23:44:28 +02:00
Marcelo Fernandez 647c4ae5bf Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-18 12:10:21 -03:00
Rémi Verschelde 49028e0c49 Revert "Child Process Connected (in Editor Debugger) is now friendlier :-)"
This reverts commit 478531d5a8.

As explained in #10192, this commit changed the color of all errors.
2017-08-18 08:53:29 +02:00
Rémi Verschelde 3552755306 TileMap Editor: Improve tile info setting using signal
The event-based approach avoids the need to query editor settings
and call show/hide on the Control at every mouse input.

Improves #9141.
2017-08-16 20:03:02 +02:00
Rémi Verschelde 29632aadfd Merge pull request #9141 from pixelpicosean/add-settings-to-hide-tile-info
Add setting to hide tile info on the tilemap menu
2017-08-16 19:06:04 +02:00
Rémi Verschelde 479c5ba754 Some fixes to 2 to 3 exporter 2017-08-16 17:52:03 +02:00
Jakub Grzesik 295e0b6937 fix crash after click on MeshInstance with no owner
cherrypicked from #10258
2017-08-14 10:21:44 +02:00
Zher Huei Lee ed3cc7e5c9 Project manager UI displaced by long paths #10245
(cherry picked from commit 5c94eeeb79)
2017-08-13 20:29:47 +02:00
vipsbpig a04bb88e46 ability to click on spatial subscene to select it
(cherry-picked from d2d62122e2)
2017-08-13 20:29:46 +02:00
Juan Linietsky 0120f0473f Clean up canvas item when changing state, closes #5977
(cherry picked from commit 950b205609)
2017-08-13 20:29:46 +02:00
Juan Linietsky b94c5a31cd fix collada crash on invalid (blender internal expored...) file, fixes #6222
(cherry picked from commit de219e5cbe)
2017-08-13 20:29:46 +02:00
Juan Linietsky 670d07ca0d Attempt to resolve #4673
(cherry picked from commit 1939e83a65)
2017-08-13 20:29:46 +02:00
homer666 57084ada96 Adjust FileSystem split mode's height threshold
(cherry picked from commit e32abe8072)
2017-08-13 20:29:46 +02:00
Cradmon 2b2c0523b5 Fix resource docker thumbnail bug
(cherry picked from commit b8a31d6563)
2017-08-13 18:02:19 +02:00
Andreas Haas b694f58959 TileMap: Fix infinite loop when trying to bucket-delete empty tiles.
Right-clicking when the bucket tool is enabled means "erase all instances of this tile".
So it doesn't make sense to try doing this for empty tiles :P

Fixes #10065

(cherry picked from commit 95da12212b)
2017-08-13 18:00:25 +02:00
Rémi Verschelde ac79f831af Merge pull request #10192 from ISylvox/ChildProcessConnected-scary-to-friendly-2.1
[2.1] Editor Debugger: Changed the Color of Child Process Connected
2017-08-11 10:38:58 +02:00
Indah Sylvia 478531d5a8 Child Process Connected (in Editor Debugger) is now friendlier :-) 2017-08-09 12:56:27 +07:00
Indah Sylvia 5014b9dc40 core/[io;object]: fix typo 'resoucre' to 'resource' 2017-08-08 18:07:29 +07:00
geequlim 21f2fff82e Don't re-query remote object while debugging every frame 2017-08-02 22:31:43 +08:00
ISylvox de55a0076c Several enhancement for 'Godot 2 to 3' project exporter. 2017-08-01 08:10:21 +07:00
Rémi Verschelde c1f54e1a45 Style: Apply clang-format on all files
Thus fixing some invalid changes that had still made it to the 2.1 branch.
2017-07-30 23:00:25 +02:00
Paulb23 4aca27e2fa Fixed script tab selection on file close, issue 8400
(cherry picked from commit 3906134003)
2017-07-30 21:23:19 +02:00
Rémi Verschelde 3c357f3247 Merge pull request #9866 from RandomShaper/default-motion-fix-2.1
Enable 2D physics motion fix for new projects (2.1)
2017-07-26 13:04:37 +02:00
Pedro J. Estébanez e19d517c21 Enable 2D physics motion fix for new projects 2017-07-26 12:19:22 +02:00
Fabio Alessandrelli c3055b24d1 Remove "debug/remote_port" project setting (moved to editor)
Also updated default port from 6007 (X11) to 6096 (unspec)
2017-07-22 14:36:43 +02:00
Rémi Verschelde 63a9b02131 Fixes to the 2to3 project exporter 2017-07-15 16:50:49 +02:00
geequlim 7a02467dad Fix editor crash while exiting debuggger 2017-07-15 18:31:21 +08:00
anakimluke 23b19a4349 Removed outdated comment.
closes #78

(cherry picked from commit c1699d807f)
2017-07-14 22:03:21 +02:00
Andreas Haas 3d95424147 Animation Editor: Fix trying to stop playback without player.
Fixes #9280

(cherry picked from commit bb9daaccff)
2017-07-14 21:55:02 +02:00
Andreas Haas 34c8beb91c Script create diag: Show extensions for currently selected language only.
(cherry picked from commit 8e8e4b30e5)
2017-07-14 21:53:53 +02:00
Rémi Verschelde c7b7cb24a5 Change default color of script editor text selection
Supersedes and closes #9388.

(cherry picked from commit 6fd4311c27)
2017-07-14 21:51:32 +02:00
geequlim da2bcda7be Enhanced debugger. ake 2.1 more productive!
Allow access more informations from remote debugger.
Refector more debugger related code to allow full access to variables.
Array Property Editor now can edit with more objects including remote objects.
Implements `GDInstance::debug_get_globals` to query all gloabl constants avaliable in GDScriptLanguage.
Show globals in debug stack variable panel.
Disabe capitalize property name for  remote object.
Add DictionaryPropertyEdit to edit with Dictionaries.
The serialization/unserialization workflow use binary data instead of dictionary to avoid send too large data.
Do not stop debugger if curent break point stack has error fix #9034.
Don't send all content of strings but first 80 characters from remote debugger.
Add constants into the break point stack tree and remote object instance edit inspector.
Remote GDScript resource object instance list constants in the property inspector.
Add `self` to the local in the break point stack as a remote object.
Move some functions for GDScript related to thier base classes so debugger don't rely on the gdscript module any more.
The slef in the debugger tree now expanded as the instance of script instead of the script resource.
2017-07-11 17:44:28 +08:00
Rémi Verschelde 37eaa9d792 EditorNameDialog: Fix margins
Somehow the previous code is what works in *master*, though it looks buggy.
For 2.1, the margins should be set on the container itself.
2017-07-02 13:16:39 +02:00
Rémi Verschelde 5a6eaf5a55 EditorNameDialog: Remove unnecessary move_child
Fixes #9377.

(cherry picked from commit bb6e73f9c1)
2017-07-02 12:51:07 +02:00
Rémi Verschelde 47307453f7 Script editor help: Prevent loading empty instances from layout
(cherry picked from commit 71f6c96288)
2017-07-02 12:31:43 +02:00
Juan Linietsky 920f216a14 Small exporter fixes 2017-06-29 07:29:48 -03:00
Rémi Verschelde 3070267c4c Merge pull request #9364 from Noshyaar/pr-genh21
BuildSystem: generated files have .gen.ext (2.1)
2017-06-25 16:08:26 +02:00
Poommetee Ketson 4a0dc529ce BuildSystem: generated files have .gen.ext 2017-06-25 20:31:56 +07:00
Rémi Verschelde 11dc3f8589 i18n: Update template and sync translations 2017-06-25 14:25:46 +02:00
Rémi Verschelde 3683d1501d i18n: Sync translations with Weblate
Adds Finnish translation.
2017-06-25 14:23:24 +02:00
Rémi Verschelde c5a44eebf5 Merge pull request #8558 from RandomShaper/tilemap-one-way-collision-2.1
Add one-way collision to tile-set/tile-map (2.1)
2017-06-25 11:19:54 +02:00
Pedro J. Estébanez 5b4f40666b Fix regression in script debugger 2017-06-19 11:56:16 +02:00
Pedro J. Estébanez 2018db093c Add one-way collision to tile-set/tile-map 2017-06-17 22:26:50 +02:00
aswinmohanme 945f40303a Prevent Editor from hang when importing stl as mesh
When Importing an stl file into Godot from the import mesh menu, the
editor hangs indefinitely. Since only Obj files are supported, the data
remains unparsed and hence the editor enters an infinte loop.

This commit fixes this issue by exiting the loop when godot has finished
parsing the file, irrespective of whether any meaningful data was
extracted out.

Fixes: #9200
2017-06-17 12:55:46 +02:00
Kryptocron cb2697e98e Added option to not save a scene when played.
(cherry picked from commit 4bee1d98fa)
2017-06-17 12:53:29 +02:00
Rémi Verschelde f1af9f380b Merge pull request #9119 from pixelpicosean/improve-tileset-convert-shape-offset-2.1
Subtract body position from shape offset during tileset convert
2017-06-17 12:52:52 +02:00
Bojidar Marinov 9c44d72b3c Fix EditorFileSystem duplicating root folder in new folders
Also, add some uninitialized variables into constructors (I like to applease cppcheck).
Also, remove unused md_count.
Fixes #3662.

(cherry picked from commit c89d9720f0)
2017-06-17 12:31:27 +02:00
Hugo Locurcio db2cb08057 Increase the default perspective camera FOV
This does not affect existing projects, but will affect newly-created
editor settings and Camera nodes.

(cherry picked from commit cdcc3c919b)
2017-06-17 12:31:27 +02:00
Fabio Alessandrelli f6f8628ec9 Editor now shows error when debug port is in use
(cherry picked from commit fc1368bee0)
2017-06-17 12:09:09 +02:00
Poommetee Ketson f1901d8e3f Fix unsaved scene not running after save
(cherry picked from commit 6b7021ad90)
2017-06-17 12:07:27 +02:00
Nuno Donato 575ee17779 Run project after selecting main scene. Fixes #9077
(cherry picked from commit 1ab0a779d8)
2017-06-17 12:07:18 +02:00
Nuno Donato ef2a962bad Automatically open new project after creating it in project manager.
Fixes #9075

(cherry picked from commit 9fd41416a9)
2017-06-17 12:07:10 +02:00
toger5 314fa89978 project manager, fixed siing of sort button
(cherry picked from commit c33eff4bf9)
2017-06-17 12:03:59 +02:00
Poommetee Ketson 44864eb663 About: add contributors list
(cherry picked from commit db439308e6)
2017-06-17 12:03:19 +02:00
Poommetee Ketson 15ab3804df CreateDialog: fix activating recent item creates node selected in search result
(cherry picked from commit db64fcdd5f)
2017-06-17 11:52:45 +02:00
Poommetee Ketson 76955cc187 CreateDialog: select root if search exactly match
(cherry picked from commit 9fb90d7aea)
2017-06-17 11:52:23 +02:00
Sean Bohan e513ecb7a1 Add setting to hide tile info on the tilemap menu
Sometimes the tile info label is too long so that the right dock will be pushed off the view if runs Godot in a small screen. It’ll no longer be a problem if this tile info is hide.
2017-06-13 13:02:26 +08:00
Andreas Haas 6ae8cbb850
EditorSettings: Default game window placement to Centered. 2017-06-12 21:10:31 +02:00
Sean Bohan 1028739690 Subtract body position from shape offset during tileset convert
To be able to adjust tile offset by changing position of StaticBody instead of modifying it maunally from the tres file or by calling a script.
2017-06-11 11:58:02 +08:00
Rémi Verschelde fe78ebbcb4 Merge pull request #8920 from pixelpicosean/scroll-to-pan-canvas-item-editor
Add settings to pan canvas editor instead of zoom with mouse/touchpad scrolling
2017-06-09 10:49:25 +02:00
Andreas Haas 1033250001 Editor: Make "open 2d/3d/script editor" shortcuts configurable.
Also adds shortcuts for opening the AssetLib and for switching to the next/prev editor.

(cherry picked from commit 3be8a94868)
2017-05-27 00:42:59 +02:00
Andreas Haas 4d9d3819f0 Project Settings: Use capitalized properties.
There's been some inconsistency between the ProjectSettings and EditorSettings:
One would use "snake_case_properties", the other "Capitalized Properties".

This fixes that by also using capitalized properties for the project settings.
(It's actually the default, so the line setting it to false was just removed..)

Was there a strong reason for using snake_case here in the first place?

(cherry picked from commit 162068640b)
2017-05-26 23:59:03 +02:00
Rémi Verschelde d432ad1e17 Improve documentation of thirdparty code snippets
(cherry picked from commit c8aea60324)
2017-05-26 23:53:14 +02:00
mbalint12 1ca67fd484 Make script debugger display all kinds of objects
(cherry picked from commit be5e02708d)
2017-05-26 23:43:09 +02:00
mbalint12 8eba737992 Make property editor display dictionaries (read only)
(cherry picked from commit a542372642)
2017-05-26 23:42:34 +02:00
Rémi Verschelde 8312d421c6 Move core thirdparty files to thirdparty/{minizip,misc}
(cherry picked from commit 2398eb6ed4)
2017-05-26 23:29:26 +02:00
Andreas Haas 66a1e049b0 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.

(cherry picked from commit 29999942a2)
2017-05-26 19:05:09 +02:00
Marco Melorio 3d7756df8e Added a container to EditorNameDialog
(cherry picked from commit d4082a8d92)
2017-05-26 18:47:32 +02:00
Rémi Verschelde fec8e2549c Fix a few property warnings on Globals access
Hand-picked from 515f92d03b.
2017-05-26 18:46:59 +02:00
Rémi Verschelde 9b1ee4cd66 i18n: Add more assetlib strings to translate
Fixes #8463.

(cherry picked from commit b474646de0)
2017-05-26 18:41:46 +02:00
Andreas Haas 18f2b96186 Fix warning message when EditorPlugin script is not in tool mode.
(cherry picked from commit 0029440955)
2017-05-26 18:07:25 +02:00
supaiku fda4911b6e Fix highlight typo
(cherry picked from commit d51fe99a8b)
2017-05-26 17:43:18 +02:00
Sean Bohan e3f10f3e93 Add settings to pan canvas item editor instead of zoom with mouse/touchpad scrolling.
This feature is mainly designed for developers who uses touchpad instead of mouse, and want to scroll instead of zoom. Every macOS developers will like it since it feels intuitive.

2 new settings are added to `2d_editor`:

1. `scroll_to_pan`: turn on to use mouse/touchpad scroll to pan canvas item editor view instead of zoom
2. `pan_speed`: use this value to change scroll speed
2017-05-26 18:35:39 +08:00
Jon Ross 4ed2722589 Fix #8819. Adds _import_node() that, when used in conjunction with _import_scene, recurses through the scene tree and exports all available nodes. 2017-05-19 14:01:28 -07:00
Rémi Verschelde aa046a85dc Merge pull request #8740 from pixelpicosean/scrollingWithFactor
Implemented scrolling factor for precision trackpads for 2.1
2017-05-15 07:57:05 +02:00
Sean Bohan ee670f3724 Implemented scrolling factor for smooth trackpad scrolling
Working platforms platform: OSX, Windows.
Support for almost all ui elements, including project list.

Ported from 304a1f5b5a (#7864).
Fixes #492 and #3913.
2017-05-15 06:44:00 +08:00
Fabio Alessandrelli aa167fa04b Rename debug/debug_port to network/debug_port.
Expose it in editor settings.
2017-05-12 20:01:53 +02:00
Fabio Alessandrelli 7a4dc3be41 Allow selecting editor debug host and port.
Possibly fixes various editor<->debugger connection related problems.

(cherry picked from commit 98eb58a93c)
2017-05-12 20:01:53 +02:00
Rémi Verschelde c1e0ed4d8b Merge pull request #8643 from RandomShaper/fix-atlas-repeat-2.1
Fix inverted logic for atlas repeat (2.1)
2017-05-05 23:03:29 +02:00
Rémi Verschelde 4db6b8ff85 Merge pull request #8619 from akien-mga/3.0-exporter
Fixes to 3.0 exporter: fix rotations, remap animation tracks
2017-05-05 22:51:38 +02:00
Pedro J. Estébanez ceb1f7afda Fix inverted logic for atlas repeat 2017-05-04 14:27:06 +02:00
Rémi Verschelde 17619b5420 Merge pull request #8435 from hikari-no-yume/scene_import_rigidonly_flag
Scene importer: add -rigidonly flag for empties (fixes #8430)
2017-05-02 11:32:00 +02:00
Rémi Verschelde e936089161 Merge pull request #8561 from volzhs/modulate-transparency-2.1
Show transparency and accurate color for property
2017-05-02 11:28:28 +02:00
Rémi Verschelde dd5fd4fdac Merge pull request #8542 from RandomShaper/opt-out-capitalization-2.1
Add setting to opt-out of capitalization in property inspectors (2.1)
2017-05-02 11:25:25 +02:00
Rémi Verschelde 13d1df2e4b Fixes to 3.0 exporter: fix rotations, remap animation tracks
Also fixed some spacing issues to better match to .tscn format as written
by Godot 3.0.
2017-05-01 23:09:38 +02:00
Andrea Faulds c6fa193d66 Scene importer: add -rigidonly flag for empties (fixes #8430) 2017-04-30 16:27:00 +01:00