summaryrefslogtreecommitdiff
path: root/editor
AgeCommit message (Collapse)Author
2018-09-27Fix warnings for comparison between signed and unsigned integers ↵Rémi Verschelde
[-Wsign-compare] Also turn off -Wsign-compare warnings in the future, we do not consider them important. Fixes the following GCC 5 warnings: ``` core/node_path.cpp:279:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/oa_hash_map.h:169:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/oa_hash_map.h:314:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles2/shader_gles2.cpp:985:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles3/rasterizer_storage_gles3.cpp:1075:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/pulseaudio/audio_driver_pulseaudio.cpp:343:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/editor_plugin.cpp:525:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/editor_properties_array_dict.cpp:747:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/spatial_editor_plugin.cpp:2078:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/spatial_editor_plugin.cpp:4096:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] editor/plugins/sprite_editor_plugin.cpp:100:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:122:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:134:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/cvtt/image_compress_cvtt.cpp:339:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/etc/image_etc.cpp:222:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/gdnative/register_types.cpp:242:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/gdnative/register_types.cpp:258:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:200:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:222:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] modules/opensimplex/simplex_noise.cpp:246:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1085:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1489:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/android/export/export.cpp:1623:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:206:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:356:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:406:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] platform/iphone/export/export.cpp:493:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/audio_stream_player_3d.cpp:420:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/audio_stream_sample.cpp:565:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/audio_stream_sample.cpp:571:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_rb_resampler.cpp:156:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ``` The following warnings were not fixed, as they implied casting for no gain: ``` core/io/packet_peer.cpp:228:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] core/io/resource_format_binary.cpp:109:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/gles2/rasterizer_scene_gles2.cpp:144:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] drivers/unix/file_access_unix.cpp:249:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:889:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:1020:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:1154:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/3d/voxel_light_baker.cpp:2255:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] scene/resources/bit_mask.cpp:336:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:141:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:150:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio/audio_stream.cpp:154:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio_server.cpp:86:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] servers/audio_server.cpp:89:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ```
2018-09-27Fix warnings for operator precedence disambiguation [-Wparentheses]Rémi Verschelde
Fixes the following GCC 5 warnings: ``` core/io/resource_format_binary.cpp:1721:29: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] core/typedefs.h:108:24: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:2202:58: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] editor/plugins/spatial_editor_plugin.cpp:5002:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] main/input_default.cpp:346:59: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:348:60: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] main/input_default.cpp:579:57: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] modules/gridmap/grid_map_editor_plugin.cpp:613:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] modules/theora/video_stream_theora.cpp:335:34: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/theora/video_stream_theora.cpp:336:35: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] modules/visual_script/visual_script_property_selector.cpp:215:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:424:84: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/rich_text_label.cpp:512:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/scroll_container.cpp:173:86: warning: suggest parentheses around '&&' within '||' [-Wparentheses] scene/gui/tree.cpp:1419:98: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ```
2018-09-27Fix warnings on non-static data member initializers (C++11 feature)Rémi Verschelde
We're not formally using C++11 yet so those trigger compilation warnings (at least with GCC 5): ./main/input_default.h:122:30: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11 CursorShape default_shape = CURSOR_ARROW; ^ Note: We may allow those eventually (especially for non-int static const), but most of current occurrences were inconsistent with all other classes. See also http://www.stroustrup.com/C++11FAQ.html#member-init
2018-09-27Inspector: Enable wrap for multiline text widgetRémi Verschelde
Fixes #22458.
2018-09-25Tweak some editor texts' capitalization, use "Go to" instead of "Goto"Hugo Locurcio
This also fixes a typo in the `debugger/debug_with_external_editor` shortcut.
2018-09-25Merge pull request #22423 from Chaosus/fix_tooltip_borderRémi Verschelde
Fix incorrect tooltip border
2018-09-25Fix incorrect tooltip borderChaosus
2018-09-25Merge pull request #22290 from groud/add_2dimensional_scaleRémi Verschelde
Add both X and Y scale in the scale editor
2018-09-25Add both X and Y scale in the scale editorgroud
2018-09-24Merge pull request #22400 from Chaosus/viewport_colorRémi Verschelde
Added viewport border color setting for canvas item editor
2018-09-24Merge pull request #22398 from groud/fix_import_tab_updateRémi Verschelde
Fix import tab not updating when selecting in the tree view
2018-09-24Added viewport border color setting for canvas item editorChaosus
2018-09-24Fix import tab not updating when selecting in the tree viewgroud
2018-09-24Allow the tree view of FileSystem to take more spacegroud
2018-09-23Merge pull request #22357 from DualMatrix/no_built_inRémi Verschelde
Prevent built-in-scripts from being made from FileSystem dock
2018-09-23Prevent built-in-scripts from being made from FileSystem dockDualMatrix
Prevent built-in-scripts from being made from FileSystem dock
2018-09-23Merge pull request #22346 from Paulb23/text_file_iconRémi Verschelde
Icon for TextFiles.
2018-09-23Removed obsoleted core/helper/value_evaluator.h and moved math_fieldwise to ↵DualMatrix
core/math/ Removed obsoleted core/helper/value_evaluator.h and moved math_fieldwise to core/math/
2018-09-22Merge pull request #22339 from AndreaCatania/fixes2Max Hilbrunner
Toward 3.1 - physics fixes
2018-09-22Icon for TextFilesPaulb23
2018-09-22Correctly freed PhysicalBoneEditorAndrea Catania
2018-09-22Merge pull request #22340 from akien-mga/sort_text_editor_themesRémi Verschelde
Settings: Sort text editor themes alphabetically
2018-09-22Removed node from physical_bone_pluginAndrea Catania
2018-09-22Settings: Sort text editor themes alphabeticallyRémi Verschelde
2018-09-21Make EditorFileDialog be able to pick a folder when entering itMichael Alexsander Silva Dias
2018-09-21Remove auto disabling of the split-view in the FileSystem dockgroud
2018-09-21Merge pull request #22174 from cyclopsian/obj-pathsRémi Verschelde
Check for absolute paths in OBJ loader
2018-09-21Merge pull request #22308 from groud/fix_filesystem_settingRémi Verschelde
Fixes filesystem display mode not updating at startup
2018-09-21Fixes filesystem display mode not updating at startupgroud
2018-09-21Make filesystem dock's path bar start with said path writtenMichael Alexsander Silva Dias
2018-09-20Merge pull request #22295 from groud/fix_2D_IKJuan Linietsky
Fixes 2D Inverse Kinematic
2018-09-20Fixes 2D IKgroud
2018-09-20Merge pull request #22225 from groud/fix_draw_on_viewportRémi Verschelde
Fixes drawing of the 2D plugins on the 3D view
2018-09-20Merge pull request #22287 from Chaosus/fix_warningRémi Verschelde
Fix "This control can't grab focus." warning spam
2018-09-20Merge pull request #22068 from akien-mga/default-editor-layoutRémi Verschelde
EditorNode: New default dock layout
2018-09-20Merge pull request #22094 from elasota/fix-visual-shaderRémi Verschelde
Fix VisualShader code overwrites and save failures
2018-09-20Merge pull request #22239 from Chaosus/fix_vs_connectionRémi Verschelde
Disconnects previous visual shader node before making a new connection
2018-09-20EditorNode: New default dock layoutRémi Verschelde
As discussed with @reduz, now that the FileSystem dock is getting files display in tree view (#21426), we can change the docks layout again to give more height to the new inspector. The new layout is thus: - Top left: Scene and Import docks - Bottom left: FileSystem - Right (full height): Inspector and Node docks The 2nd left (LEFT_R) and 1st right (RIGHT_L) VSplitContainers (the ones in use) also get an additional 40px of width compared to their previous size (which was the minimum size). Fixes #21480.
2018-09-20EditorNode: Reorder and cleanup initial dock setupRémi Verschelde
2018-09-20Merge pull request #21426 from groud/add_files_to_tree_viewRémi Verschelde
Add files to tree view
2018-09-20Merge pull request #22282 from ibrahn/spatial_editor_origin_initRémi Verschelde
fix branch on uninit in spatial_editor_plugin
2018-09-20Merge pull request #22131 from DualMatrix/unique_resRémi Verschelde
Make inspector select the correct resource after making them unique
2018-09-20Merge pull request #22163 from DualMatrix/create_extraRémi Verschelde
Automatically add extra args to function when creating it from create signal window
2018-09-20Merge pull request #22171 from DualMatrix/empty_boi_WTF_WHYRémi Verschelde
Fixed empty item slipping into Search Classes dialog
2018-09-20Merge pull request #22201 from DualMatrix/error_spam_2_electric_boogalooRémi Verschelde
Fixed error spam in remote debugger
2018-09-20Merge pull request #22244 from DualMatrix/debuging_the_debuggerRémi Verschelde
Fixed Objects no longer showing ID in debugger.
2018-09-20Fix "This control can't grab focus." warning spamChaosus
2018-09-20fix branch on uninit in spatial_editor_pluginIbrahn Sahir
Moved the initialisation of origin_enabled up a bit, to be inited before it's accessed in _init_grid. A step towards cleaner valgrind output and removes an opportunity for a random occurance of the origin/grid z-fighting issue. Also removed unused variable last_grid_snap to avoid later confusion.
2018-09-20Merge pull request #22268 from DualMatrix/highlight_no_saveRémi Verschelde
Fixed syntax highlighting setting not being saved
2018-09-20Merge pull request #22270 from DualMatrix/locks_toggle_visibleRémi Verschelde
Added ability to hide edit locks and groups in editor view