Commit graph

221 commits

Author SHA1 Message Date
Rémi Verschelde
9591e587fe
Merge pull request #26022 from lupoDharkael/create-script
Add class tree selection to script inheritance selection
2019-04-30 13:43:53 +02:00
homer666
80e9e93e27 Add Popup::popup_centered_clamped method
- Also replace redundant duplicate code in editor dialogs with calls to popup_centered_clamped()
2019-04-30 05:35:43 +10:00
Tomasz Chabora
9dba47a743 Allow to keep local transform when reparenting 2019-04-29 19:24:12 +02:00
Tomasz Chabora
a93ff8d210 Add undo for Sprite Editor 2019-04-23 21:10:44 +02:00
Rémi Verschelde
04efa59868
Merge pull request #28292 from homer666/merge-from-scene-stuff
Minor "Merge From Scene" improvements
2019-04-23 12:08:55 +02:00
Rémi Verschelde
a342131eba
Merge pull request #27673 from qarmin/small_fixes
Small fixes, mostly duplicated code
2019-04-22 12:00:34 +02:00
homer666
36f955e4f3 Minor "Merge From Scene" improvements 2019-04-22 12:01:20 +10:00
Andrii Doroshenko (Xrayez)
824f68483f Add ability to expand/collapse nodes recursively in scene tree dock
To expand or collapse the node recursively (all children), hold `Shift`
button and click on the node's folding arrow.

The popup menu option `Expand/Collapse All" checks whether any node
is expanded or collapsed first and performs the opposite operation. That
means if any children node is collapsed, it will first expand all nodes
at selected node.

Co-authored-by: Rikhardur Bjarni Einarsson (MunWolf) badulf96@gmail.com
2019-04-21 13:50:30 +03:00
JFonS
42043a22e8 Add grouping to 3D editor 2019-04-17 18:24:28 +02:00
Rémi Verschelde
0d87535dd7
Merge pull request #28011 from KoBeWi/rmb_housework
Small cleanup to SceneTree dock context menu
2019-04-15 11:46:01 +02:00
Rémi Verschelde
adb41c8bee
Merge pull request #26678 from YeldhamDev/hide_addscript_multiselected
Hide "Add Script" button in Scene dock when multiple nodes are selected
2019-04-15 11:42:09 +02:00
Tomasz Chabora
d532a3f710 Small cleanup to SceneTree context menu 2019-04-14 14:04:04 +02:00
Michael Alexsander Silva Dias
27e500d4b3 Hide "Add Script" button in Scene dock when multiple nodes are selected 2019-04-13 11:05:10 -03:00
Gio Aleman
f707266b52 Fixed scene tree bug when scripts are disabled 2019-04-12 11:44:45 -04:00
Tomasz Chabora
9432e06e05 Focus SceneTree dock after creating new node 2019-04-10 17:01:42 +02:00
Juan Linietsky
a20235aeb0 Add ability to edit editor feature profiles
Allows enabling/disabling parts of the editor and storing/loading profiles for that.
2019-04-08 19:18:51 -03:00
qarmin
856a8226a5 Small fixes, mostly dupicated code 2019-04-08 11:03:37 +02:00
Rémi Verschelde
612a109b81
Merge pull request #27228 from Kanabenki/preserve-binds-change-node
Preserve extra arguments for connected signals when changing node type
2019-04-02 11:30:45 +02:00
Rémi Verschelde
3c797248d0
Merge pull request #26970 from KoBeWi/custom_node_is_now_other_node
Changed 'Custom Node' to 'Other Node' to be less confusing
2019-04-01 10:13:27 +02:00
Kanabenki
a1e7febbb3 Keep binds for connected signals when changing node type 2019-03-19 10:21:52 +01:00
yakun.zhang
e25a50d690 add check for inherted nodes when instance 2019-03-18 19:40:36 +08:00
Rémi Verschelde
c1fae20400
Merge pull request #26706 from YeldhamDev/multinode_scriptclear_fix
Fix clearing scripts while multiple nodes are selected
2019-03-16 11:09:40 -07:00
Tomasz Chabora
c1ce5b87b4 Changed 'Custom Node' to 'Other Node' to be less confusing 2019-03-12 16:12:14 +01:00
George Marques
25f9aee005
Allow class_name scripts to have nested inheritance 2019-03-09 00:47:27 -03:00
Michael Alexsander Silva Dias
d3042d162d Fix clearing scripts while multiple nodes are selected 2019-03-06 09:58:47 -03:00
Tomasz Chabora
63a2475f0f Allow to attach script when there's no 'selected node', but selection exists 2019-03-05 16:28:39 +01:00
Michael Alexsander Silva Dias
3ef8238c1c Make translatable some undo/redo operations in the editor 2019-02-21 16:41:01 -03:00
marxin
8d51618949 Add -Wshadow=local to warnings and fix reported issues.
Fixes #25316.
2019-02-20 19:44:12 +01:00
lupoDharkael
76560c8afa Add class tree selection to script inheritance selection 2019-02-18 19:16:09 +01:00
Juan Linietsky
cd45f05f7e Forbid making root on inherited scenes, closes #24484 2019-01-22 13:49:03 -03:00
Juan Linietsky
e0336996ce Add some checks to avoid disaster when making a node the scene root. Fixes #24484 2019-01-17 15:26:38 -03:00
Juan Linietsky
6f884cc884 Use SceneTreeDock to replace particles node properly, fixes #24162 2019-01-14 13:41:54 -03:00
Chaosus
be2bc4dab8 Improved script attachment/removal a bit 2019-01-02 16:56:11 +03:00
Rémi Verschelde
b16c309f82 Update copyright statements to 2019
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
volzhs
8f4e842b47 Hide "Attach Script" if node has one 2018-10-29 22:25:52 +09:00
Rémi Verschelde
0a80ceaf02
Merge pull request #23288 from willnationsdev/restore-clear-script
Restore ClearScript btn w/ ExtendScript RMB link
2018-10-29 12:16:55 +01:00
groud
5536e7a8d4 Fixes the editor layout 2018-10-26 12:44:49 +02:00
Will Nations
b4e7299b72 Restore ClearScript btn w/ ExtendScript RMB link 2018-10-25 13:33:16 -05:00
Rémi Verschelde
8e391c1e22
Merge pull request #23071 from bfhobbes/use_quickopen_for_instance_child
Use EditorQuickOpen dialog instead of EditorFileDialog when instancing a child scene.
2018-10-25 15:10:26 +02:00
Silvano Cerza
7167394876 Fixed user being unable to delete root Node if is an inherited Scene
User wasn't able to delete the root Node because it was being treated as
a foreign Node since it was an inherited Scene
2018-10-24 11:27:41 +02:00
Will Nations
42300b2769 Add icon_script_extend & update the icon @runtime 2018-10-19 09:04:07 -05:00
Andrew McDonald
66503465db Use EditorQuickOpen dialog instead of EditorFileDialog when instancing a child scene.
Addresses the bulk of #5180
2018-10-16 22:19:51 -07:00
DualMatrix
eac36a0651 Fixed setting node as root showing error and making invisible children visible.
Fixed setting node as root showing error and making invisible children visible.
2018-10-16 14:17:16 +02:00
Rémi Verschelde
3e9740ac93 Fix more "may be used initialized" warnings from GCC 7
Fixes the following GCC 7 warnings:
```
core/cowdata.h:269:47: warning: 'alloc_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/error_macros.h:163:26: warning: 'nearest_point' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/image.cpp:1579:5: warning: 'colormap_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/image.cpp:1582:12: warning: 'size_height' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/image.cpp:1590:23: warning: 'size_width' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/image.cpp:1599:29: warning: 'pixel_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/math/face3.cpp:207:15: warning: 'tri_max' may be used uninitialized in this function [-Wmaybe-uninitialized]
core/math/face3.cpp:209:15: warning: 'tri_min' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/rasterizer_scene_gles3.cpp:665:22: warning: 'best_used_frame' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/rasterizer_storage_gles3.cpp:865:27: warning: 'blit_target' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/rasterizer_storage_gles3.cpp:980:29: warning: 'blit_target' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/shader_gles3.h:122:9: warning: '<anonymous>.ShaderGLES3::Version::frag_id' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/shader_gles3.h:122:9: warning: '<anonymous>.ShaderGLES3::Version::id' may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/gles3/shader_gles3.h:122:9: warning: '<anonymous>.ShaderGLES3::Version::vert_id' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/plugins/script_editor_plugin.cpp:1980:31: warning: 'se' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/scene_tree_dock.cpp:840:30: warning: 'new_node' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4259:9: warning: 'a1' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4259:9: warning: 'lll' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4259:9: warning: 'lul' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4260:9: warning: 'a2' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4261:9: warning: 'a3' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4265:3: warning: 'enable_lin' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4294:3: warning: 'enable_ang' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4311:34: warning: 'll' may be used uninitialized in this function [-Wmaybe-uninitialized]
editor/spatial_editor_gizmos.cpp:4311:34: warning: 'ul' may be used uninitialized in this function [-Wmaybe-uninitialized]
scene/3d/voxel_light_baker.cpp:1655:47: warning: 'cone_dirs' may be used uninitialized in this function [-Wmaybe-uninitialized]
scene/3d/voxel_light_baker.cpp:1656:73: warning: 'cone_weights' may be used uninitialized in this function [-Wmaybe-uninitialized]
scene/gui/texture_progress.cpp:181:6: warning: 'cp' may be used uninitialized in this function [-Wmaybe-uninitialized]
scene/gui/texture_progress.cpp:181:6: warning: 'cq' may be used uninitialized in this function [-Wmaybe-uninitialized]
servers/physics/shape_sw.cpp:1056:19: warning: 'support_max' may be used uninitialized in this function [-Wmaybe-uninitialized]
```
2018-10-04 18:54:20 +02:00
swarnimarun
97ffdf74c3 Fixing create spatial root button 2018-10-04 06:06:58 +05:30
groud
980aa276e3 Add a shortcut to the documentation in the scene tree RMB menu 2018-10-03 11:25:18 +02:00
Rémi Verschelde
648b21228e
Merge pull request #22009 from DualMatrix/warning
Added warning when disabling editable_instance
2018-10-02 09:50:40 +02:00
Rémi Verschelde
53fbd93409
Merge pull request #22593 from akien-mga/fix-warnings
Fix various warnings raised by Clang 7
2018-10-02 00:01:31 +02:00
Rémi Verschelde
22c3995a04
Merge pull request #22576 from DualMatrix/multi_edit_exit
Fixed inspector not going back to single-node when deselecting an item.
2018-10-01 23:44:27 +02:00
Rémi Verschelde
413f078125
Merge pull request #22584 from DualMatrix/editor_path_no_update
Fixed name of deleted node not dissapearing from inspector dock.
2018-10-01 23:43:58 +02:00
Rémi Verschelde
b1b625f4f5 Fix various Clang 7 warnings about unused stuff
Namely:
[-Wunneeded-internal-declaration]
[-Wunused-comparison]
[-Wunused-const-variable]
[-Wunused-function]
[-Wunused-private-fields]

Fixes the following Clang 7 warnings:
```
editor/plugins/script_editor_plugin.cpp:1417:20: warning: function '_find_node_with_script' is not needed and will not be emitted [-Wunneeded-internal-declaration]
editor/scene_tree_dock.cpp:1859:14: warning: function '_find_last_visible' is not needed and will not be emitted [-Wunneeded-internal-declaration]

modules/gdscript/gdscript_parser.cpp:7838:19: warning: equality comparison result unused [-Wunused-comparison]

scene/resources/mesh.cpp:549:35: warning: unused variable '_array_types' [-Wunused-const-variable]
scene/resources/mesh.cpp:563:18: warning: unused variable '_format_translate' [-Wunused-const-variable]

drivers/gles3/rasterizer_scene_gles3.cpp:54:28: warning: unused function 'store_transform2d' [-Wunused-function]

core/io/file_access_network.h:50:6: warning: private field 'ml' is not used [-Wunused-private-field]
core/io/file_access_zip.h:93:14: warning: private field 'archive' is not used [-Wunused-private-field]
core/io/resource_format_binary.h:122:6: warning: private field 'bin_meta_idx' is not used [-Wunused-private-field]
core/message_queue.h:47:9: warning: private field 'mutex' is not used [-Wunused-private-field]
main/tests/test_gui.cpp:63:11: warning: private field 'control' is not used [-Wunused-private-field]
modules/gdscript/gdscript_parser.h:558:7: warning: private field 'completion_static' is not used [-Wunused-private-field]
platform/x11/os_x11.h:148:11: warning: private field 'ip_unix' is not used [-Wunused-private-field]
platform/x11/os_x11.h:180:7: warning: private field 'net_wm_icon' is not used [-Wunused-private-field]
platform/x11/os_x11.h:189:6: warning: private field 'audio_driver_index' is not used [-Wunused-private-field]
platform/x11/os_x11.h:190:15: warning: private field 'capture_idle' is not used [-Wunused-private-field]
servers/physics/body_pair_sw.h:79:6: warning: private field 'cc' is not used [-Wunused-private-field]
servers/visual/visual_server_raster.h:62:7: warning: private field 'draw_extra_frame' is not used [-Wunused-private-field]
```
2018-10-01 17:32:12 +02:00
DualMatrix
ec463b036a Fixed inspector not going back to single-node when deselecting an item.
Fixed inspector not going back to single-node when deselecting an item.
2018-10-01 12:26:32 +02:00
DualMatrix
3ef241623e Fixed name of deleted node not dissapearing from inspector dock.
Fixed name of deleted node not dissapearing from inspector dock.
2018-10-01 12:15:22 +02:00
DualMatrix
6f96db4732 Fixed setting node as root deleting all non-children of that node.
Fixed setting node as root deleting all non-children of that node.
2018-09-30 00:04:18 +02:00
JFonS
a100b320c2 Change viewport type after using create root menu
Change viewport type (2D/3D) according to the type of node just created
from the "Create Root Node" menu.
2018-09-20 10:44:58 +02:00
DualMatrix
edd93b7608 Fixed favorite nodes list not being saved
Fixed favorite nodes list not being saved
2018-09-19 00:30:01 +02:00
DualMatrix
0d09f80e43 Added warning when disabling editable_instance
Added warning when disabling editable_instance to prevent data loss.
2018-09-17 15:18:03 +02:00
Michael Alexsander Silva Dias
75d5d81b8a Remove unnecessary "OK"s text settings 2018-09-15 21:40:50 -03:00
willnationsdev
5436abefe4 Refactor editor icon retrieval 2018-09-14 09:27:56 -05:00
Rémi Verschelde
fb77cdf2f2 Fix default script name in ScriptCreateDialog
It would default either to '.gd' when created from the script editor,
or to 'res:///NodeName.gd' (three '/') when created from the scene tree dock.
2018-09-12 12:29:50 +02:00
DualMatrix
c43ffc8917 Prevent overwriting open scenes when saving
Prevent overwriting open scenes when saving, this fixes #17628
2018-09-07 15:54:26 +02:00
JFonS
4a412943d4 Fix selection of instanced scenes in 3D 2018-09-02 22:31:03 +02:00
Will Nations
ca14766e3a Fix making _editor_icon meta during CLEAR_SCRIPT 2018-08-28 15:32:35 -05:00
Rémi Verschelde
52466d57e9 Make some debug prints verbose-only, remove others 2018-08-24 14:59:01 +02:00
Will Nations
6d9cc032e7 Add custom icons to script classes. 2018-08-14 14:18:05 -05:00
Rémi Verschelde
c3a57ddf03
Merge pull request #20484 from willnationsdev/create-favorites
Add toggle for favorites in create_root_dialog
2018-08-14 16:12:02 +02:00
Rémi Verschelde
c8414007ad
Merge pull request #20835 from Calinou/use-standard-button-texts-2
Tweak some editor button texts
2018-08-14 15:45:34 +02:00
Łukasz Rutkowski
81fb81de9d Do not use theme to set LineEdit right_icon 2018-08-11 12:04:26 +02:00
Łukasz Rutkowski
e8a435c8cd Add clear text button to LineEdit
- Add pressed state to clear button
- Enable clear button on all inputs with search icon
- Remove duplicate clear buttons
- Fix rendering of icon for center and right alignments
- Add clear button to more search fields
- Add clear icon to default theme
- Add method to control enabled state of clear button
- Add property to enable clear button from inspector
2018-08-11 12:04:26 +02:00
Hugo Locurcio
147f7fbdcf
Tweak some editor button texts 2018-08-09 11:22:11 +02:00
willnationsdev
1ea37c34ad Add toggle for favorites in create_root_dialog. 2018-08-08 12:15:42 -05:00
Hugo Locurcio
1368bcfc53
Use a standard "OK" text for confirmation buttons in error dialogs
[ci skip]
2018-08-05 16:49:22 +02:00
Juan Linietsky
7b63c6323d Clear color was not correctly being set, fixes #4939 2018-07-29 15:09:42 -03:00
Juan Linietsky
0fcc28b6f3
Merge pull request #15269 from ianb96/context_menu_improvements
Context Menu Improvements
2018-07-29 12:31:20 -03:00
Ian
1bb13e95a8 context menu improvements 2018-07-26 08:58:35 -04:00
Will Nations
3de15363ab Add script hierarchies,add-script btn auto-derives 2018-07-25 15:18:45 -05:00
Rémi Verschelde
1f6fedeb37
Merge pull request #19729 from razcore-art/rename-discard-instancing
Rename 'Discard Instancing' to 'Make Local'
2018-07-24 20:51:53 +02:00
Juan Linietsky
c0c243ac5c New option, make any node the new scene root. 2018-07-15 23:52:57 -03:00
Juan Linietsky
512ffd489a Small feature to help users understand the editor faster. 2018-07-15 23:11:29 -03:00
Răzvan C. Rădulescu
e8315f306c Rename 'Discard Instancing' to 'Make Local'
Rename the option in the right click menu in the Scene nodes
because Discard Instancing is confusing (it could imply deleting the
instance). I renamed it to Make Local which is used for example in
Blender as well when talking about appending assets from other files.
I think it's clearer. Or it can be renamed to Make Instance Local, but I
thought it's a bit oo long so I went just with Make Local as this option
appears in the menu only when the node is an instance anyway.
2018-06-25 15:54:05 +02:00
Rémi Verschelde
a6c9b11de1
Merge pull request #19437 from volzhs/live-edit-reparent-child
Make same child index as edited scene when using live edit
2018-06-08 08:10:46 +02:00
volzhs
cad3c41a91 Make same child index as edited scene when using live edit 2018-06-08 07:40:43 +09:00
Juan Linietsky
b659fd6d74 Entirely new (and much improved) animation editor. 2018-06-07 12:52:00 -03:00
steincodes
25704427b5 Removing Duplicate Batch Rename from scene-tree menu 2018-05-30 18:03:08 +05:30
Zirak
595d377062 Instance scene at root by default
Fix bug in cdcfb9582e leading to the
root node not being selected by default.

Fix #18557.
2018-05-26 14:09:07 +00:00
Juan Linietsky
4b5227ff77 -Ability to open resources in the same window
-Plenty of fixes and improvements to new inspector
-Fixes that were needed to make inspector work better
2018-05-17 18:03:05 -03:00
Eoin O'Neill
1378ca1e04 Added Rename Context Menu Option for SceneTreeDock 2018-05-16 23:27:07 +02:00
Juan Linietsky
005b69cf6e -New inspector.
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)

-
2018-05-15 17:14:31 -03:00
Rémi Verschelde
64cb61619a
Merge pull request #15928 from StateOff/feature_batch_rename
Implements "Batch Rename" editor tool.
2018-05-08 07:36:24 +02:00
Unknown
cdcfb9582e Defaults to instancing child at tree root when none selected
If no node is selected, it will default to selecting the tree root node to instance a child under. This solves #18557
2018-05-06 15:10:57 +01:00
Hugo Locurcio
1c419531a0 Change ".." punctuation for "..." in editor strings (#16507) 2018-04-22 19:36:01 +02:00
Juan Linietsky
d59ff07c1e
Merge pull request #17717 from NikodemL/master
Extended node rename function to also support renaming  node path script instance property
2018-04-07 16:46:49 -03:00
Nikodem Lokatelj
66d2cd3918 perform_node_renames fix for a case where the new name is empty 2018-03-30 14:49:21 +02:00
Michael Alexsander Silva Dias
7cbf301f31 Fixed some popups not shrinking their size back when losing items. 2018-03-28 17:04:37 -03:00
Nikodem Lokatelj
6eac0f6817 Extended node renames function to also rename script instance node path properties and fixed animation rename bug perform_node_renames function now also checks for any script instance with node paths so they also get renamed to point to new paths. This also fixes a bug with animation player renaming where two nodes had the same name. 2018-03-23 12:59:31 +01:00
Rémi Verschelde
32c726f7cd
Merge pull request #17344 from poke1024/multi-add-clear-script
Allow Attach and Clear Script on multiple nodes
2018-03-23 11:37:18 +01:00
robfram
8ea4ea0d53 Fix overwriting all common properties when using Change Type tool
If you change the type of an existing node, it checks if you have
modified the initial value of their properties before overwriting
their values in the new node.

For example, if you created a `Label` and changed it to
`LineEdit`, the `mouse_filter` property was created as `Ignore`
for the original `Label` node, and was maintained after changing
it to `LineEdit` causing not to work as expected. Now it checks if
`Ignore` is the default value for `Label` nodes, and as it is, the
property value is left unchanged, maintaining the default value
for `LineEdit`, which is `Stop`.

Fix #13955 and alike.
2018-03-09 19:05:04 +01:00
poke1024
22fde84beb Allow Add and Clear Script on multiple nodes 2018-03-09 08:38:37 +01:00
Juan Linietsky
9e3a1e5401 Add base support for 2D meshes in Godot, including Sprite -> Mesh2D conversion. 2018-02-21 09:39:09 -03:00
Unknown
d002b7d24a Fix Automatic switch to viewport when playing a scene #16357 2018-02-18 23:37:30 +01:00