summaryrefslogtreecommitdiffstats
path: root/editor/plugins/spatial_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Merge pull request #24506 from JFonS/expose_gizmosRémi Verschelde2018-12-301-28/+139
|\ | | | | Expose the new gizmo plugin system to scripting
| * Expose the new gizmo plugin system to scriptingJFonS2018-12-211-28/+139
| |
* | Merge pull request #20609 from YeldhamDev/menu_hover_explicitRémi Verschelde2018-12-091-0/+2
|\ \ | | | | | | Make opening menus with the same parent on mouse focus explicit
| * | Make opening menus with the same parent on mouse focus explicitMichael Alexsander Silva Dias2018-11-201-0/+2
| | |
* | | Use filename as fallback instead of the class name for mesh instance loaded ↵asheraryam2018-12-021-1/+1
|/ / | | | | | | by dragging from file to editor.
* | Merge pull request #23813 from JFonS/change_gizmo_defaultRémi Verschelde2018-11-201-6/+6
|\ \ | | | | | | Change default gizmo visibility and icons
| * | Change default gizmo visibility and iconsJFonS2018-11-181-6/+6
| | |
* | | EditorSettings: Rename invert_y-axis to invert_y_axis for consistencyRémi Verschelde2018-11-171-2/+2
|/ / | | | | | | No other option uses a dash in its identifier.
* | Merge pull request #21897 from Calinou/3d-display-camera-coordinatesRémi Verschelde2018-11-021-0/+13
|\ \ | |/ |/| Display camera coordinates in the 3D viewport's information pane
| * Display camera coordinates in the 3D viewport's information paneHugo Locurcio2018-09-111-0/+13
| |
* | Merge pull request #23171 from capnm/fix-orthogonal-mode-freelookRémi Verschelde2018-10-251-35/+44
|\ \ | | | | | | Disable 'freelook' in the orthogonal mode.
| * | Disable 'freelook' in the orthogonal mode.Martin Capitanio2018-10-201-35/+44
| | | | | | | | | | | | | | | | | | | | | Fixes #23095 Thanks @aaronfranke for hints. Fixes #23078
* | | Merge pull request #23211 from YeldhamDev/spatial_editor_preview_adjustmentRémi Verschelde2018-10-251-1/+1
|\ \ \ | | | | | | | | Readjust "Preview" button in Spatial editor
| * | | Readjust "Preview" button in Spatial editorMichael Alexsander Silva Dias2018-10-211-1/+1
| | | |
* | | | Fix 'Align selection with view' in orthogonal modeMartin Capitanio2018-10-221-2/+8
|/ / / | | | | | | | | | Fixes #23096
* / / Make "Perspective" button look like a actual clickable buttonMichael Alexsander Silva Dias2018-10-181-31/+46
|/ /
* | Merge pull request #22752 from aaronfranke/equals-redundantRémi Verschelde2018-10-071-1/+1
|\ \ | | | | | | Remove redundant "== true" and "== false" code
| * | Remove redundant "== true" codeAaron Franke2018-10-061-1/+1
| | | | | | | | | If it can be compared to a boolean, it can be evaluated as one in-place.
* | | Make the 3D viewport menu button easier to readHugo Locurcio2018-10-061-3/+8
|/ / | | | | | | This closes #22809.
* | Merge pull request #22568 from dlasalle/#14959Rémi Verschelde2018-10-021-5/+6
|\ \ | | | | | | Explicitly show viewport 0 in the SpatialEditorPlugin if the container is large enough.
| * | Explicitly show viewport 0 in the SpatialEditorPlugin if the container is ↵Dominique LaSalle2018-09-301-5/+6
| | | | | | | | | | | | large enough.
* | | Merge pull request #21421 from YeldhamDev/mult_view_changesRémi Verschelde2018-10-021-51/+92
|\ \ \ | | | | | | | | Small improvements to the Spatial Editor's multiple viewport mode
| * | | Small improvements to the Spatial Editor's multiple viewport modeMichael Alexsander Silva Dias2018-08-251-51/+92
| | | |
* | | | Minor nit-picky tweaks in spatial_editor_plugin.cppAaron Franke2018-10-011-4/+4
| |/ / |/| | | | | | | | | | | | | | | | | * Orthogonal cameras don't have an FOV that's "near zero". Or zero, or any number of degrees. It's not a measurement of degrees, it's just a fixed width. This comment is more accurate. Also, "terrible" is a better word than "awful" here. * While I'm editing this file, the "String ortho" variable name could be more intuitive, so I've changed it to "view_mode". Minor nit-picky changes, I know, but I found it so I may as well improve it.
* | | Fix warnings about unhandled enum value in switch [-Wswitch]Rémi Verschelde2018-09-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes GCC 5 warnings of the form: core/io/http_client.cpp:288:9: warning: enumeration value 'STATUS_SSL_HANDSHAKE_ERROR' not handled in switch [-Wswitch] core/io/marshalls.cpp:806:9: warning: enumeration value 'AABB' not handled in switch [-Wswitch] Those can be trivial cases where adding a default fallback is the solution, or more complex issues/hidden bugs where missed values are actually meant to be handled.
* | | Fix warnings for comparison between signed and unsigned integers ↵Rémi Verschelde2018-09-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [-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] ```
* | | Fix warnings for operator precedence disambiguation [-Wparentheses]Rémi Verschelde2018-09-271-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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] ```
* | | Merge pull request #22225 from groud/fix_draw_on_viewportRémi Verschelde2018-09-201-3/+2
|\ \ \ | | | | | | | | Fixes drawing of the 2D plugins on the 3D view
| * | | Fixes drawing of the 2D plugins on the 3D viewgroud2018-09-181-3/+2
| | | |
* | | | Merge pull request #22287 from Chaosus/fix_warningRémi Verschelde2018-09-201-1/+0
|\ \ \ \ | | | | | | | | | | Fix "This control can't grab focus." warning spam
| * | | | Fix "This control can't grab focus." warning spamChaosus2018-09-201-1/+0
| |/ / /
* / / / fix branch on uninit in spatial_editor_pluginIbrahn Sahir2018-09-201-4/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Remove unnecessary "OK"s text settingsMichael Alexsander Silva Dias2018-09-151-3/+0
| | |
* | | Few unifications between canvas_item and spatial editorsChaosus2018-09-151-4/+6
| | |
* | | Refactor editor icon retrievalwillnationsdev2018-09-141-5/+1
| |/ |/|
* | Merge pull request #21707 from JFonS/fix_instanced_selectionRémi Verschelde2018-09-051-18/+17
|\ \ | | | | | | Fix selection of instanced scenes in 3D
| * | Fix selection of instanced scenes in 3DJFonS2018-09-021-18/+17
| | |
* | | Move ParticlesMaterial code to its own resource fileRémi Verschelde2018-09-041-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | It's shared by both 2D and 3D particles (+ CPU ones), so it makes sense to have as a common resource. It also allowed to disable compilation of Particles (3D) when using 'disable_3d'. Also cleaned up includes in SpatialEditorGizmos and some other places, as well as dropped dead code in material_editor_plugin.cpp.
* | | Fix some editor shortcuts' default values not being set properlyHugo Locurcio2018-09-011-2/+1
|/ / | | | | | | | | | | | | | | This also changes the uppercase/lowercase/capitalize shortcuts to Shift+F4, Shift+F5 and Shift+F6 respectively to avoid conflicts with the new Find Next shortcut. This closes #21612.
* | Merge pull request #21485 from JFonS/fix_selectionRémi Verschelde2018-08-291-12/+9
|\ \ | | | | | | Saner selection code for instanced scenes in 3D, should close #21447
| * | Saner selection code for instanced scenes in 3D, should close #21447JFonS2018-08-271-12/+9
| |/ | | | | | | | | | | Selecting instanced scenes still doesn't work properly because gizmos are not being added to instanced nodes. I will probably work on fixing all the shenanigans around selection, but that will take some time. This part of the code should work better for the moment.
* / Fix z-fighting on origin grid lines in spatial editorRémi Verschelde2018-08-291-0/+1
|/ | | | Fixes #21264.
* Remove material errors after opening new project, fixes #21073JFonS2018-08-231-2/+2
|
* Merge pull request #18822 from QbieShay/masterJuan Linietsky2018-08-201-1/+2
|\ | | | | Added spring arm node
| * added spring arm node.QbieShay2018-08-181-1/+2
| |
* | Fix the 3D grid flickering when the origin is enabledHugo Locurcio2018-08-171-4/+11
|/
* Disable camera interpolation when switching scene tabsGuilherme Felipe2018-08-141-0/+9
| | | | Fix #11764
* Merge pull request #20744 from Zylann/fix_viewport_lock_rotationRémi Verschelde2018-08-141-0/+1
|\ | | | | Initialize default lock rotation in constructor
| * Initialize default lock rotation in constructorMarc Gilleron2018-08-051-0/+1
| |