summaryrefslogtreecommitdiffstats
path: root/editor/plugins/node_3d_editor_plugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #52886 from bruvzg/rtl_fixesRémi Verschelde2021-09-211-1/+2
|\ | | | | Fix RTL layout Label text, VBox child, 3D node editor controls, and popup menu alignment.
| * Fix RTL layout Label text, VBox child, 3D node editor controls, and popup ↵bruvzg2021-09-211-1/+2
| | | | | | | | menu alignment.
* | Tweak the 3D editor inertia defaults for better responsivenessHugo Locurcio2021-09-201-22/+5
|/ | | | | | | | | The default orbit sensitivity was decreased to account for this change. Rotational inertia (orbit + freelook) was disabled by default due to known issues. This also removes the need for separate manipulation inertia settings, as the default settings are more responsive.
* Fix error spam on quitjfons2021-09-201-1/+1
|
* Rename Listener2D/Listener3D to AudioListener2D/AudioListener3DWilson E. Alvarez2021-09-161-1/+1
|
* Merge pull request #52681 from nekomatata/rename-rigid-bodyCamille Mohr-Daurat2021-09-161-1/+1
|\ | | | | Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBody
| * Rename RigidBody to RigidDynamicBody and SoftBody to SoftDynamicBodyPouleyKetchoupp2021-09-161-1/+1
| |
* | Display a editor gizmo icon for Listener3DHugo Locurcio2021-09-161-0/+1
| | | | | | | | | | | | | | | | The icon was present in `editor/icons/`, but it was never implemented in the editor gizmos code. This also removes some unused gizmo drawing code (overridden methods that are no longer called anywhere).
* | Fix issues with scaling Node3DsKrystof Klestil2021-09-151-0/+2
|/
* Merge pull request #51821 from Calinou/builtin-shaders-add-commentsJFonS2021-08-251-0/+8
|\ | | | | Add comments at the top of each built-in shader to ease debugging
| * Add comments at the top of each built-in shader to ease debuggingHugo Locurcio2021-08-181-0/+8
| | | | | | | | | | | | When a shader error is printed about a built-in shader, the origin of the shader will now be recognizable immediately by looking at the top of the printed shader code.
* | Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz2021-08-231-12/+3
|/ | | | | | | | * `_gui_input`, `_input`, `_unhandled_input` and `_unhandled_key_input` are now regular C++ virutal functions. * Everything else converted to GDVIRTUAL * BIND_VMETHOD is gone, always use the new syntax from now on. Creating `_gui_input` method and using the binder to register events will no longer work, simply override the virtual function now.
* Merge pull request #51736 from JFonS/minor_fixes_n3epRémi Verschelde2021-08-161-44/+46
|\ | | | | Minor fixes to Node3DEditorPlugin
| * Minor fixes to Node3DEditorPluginjfons2021-08-161-44/+46
| | | | | | | | | | | | | | | | * Change EditorNode3D::update_all_gizmos() to start at the edited scene root instead of the whole editor root. * Call update_all_gizmos() only once at start instead of evrey time a gizmo plugin is added. * Add missing null check.
* | Fix i18n of 3D view nameHaoyu Qiu2021-08-141-21/+69
|/ | | | | Make the full view name translatable as a whole instead of combining from sub-strings.
* Merge pull request #51035 from foxydevloper/drag-drop-more-supportRémi Verschelde2021-08-131-1/+1
|\ | | | | Improve drag and dropping files into viewport by supporting more types
| * Improve drag and drop by supporting more file types & node typesfoxydevloper2021-08-101-1/+1
| | | | | | | | | | | | | | | | | | Adds support for dragging in all files of type Texture2D for 2D. Adds support for dragging in all files of type Mesh for 3D. Replaces adding texture as Light2D with PointLight2D. Add more node types that textures can be added as - TextureButton - CPUParticles2D
* | Merge pull request #51399 from RevoluPowered/improve_editor_grid_performance_4.0Rémi Verschelde2021-08-111-26/+75
|\ \ | | | | | | [4.0] Implement editor grid performance improvements
| * | Implement editor grid performance improvementsGordon MacPherson2021-08-111-26/+75
| | | | | | | | | | | | | | | | | | | | | | | | Benefits: - Knows the size of the mesh to prevent push back taking longer - No longer updates grid every frame, only if the camera has moved 10 units or more. - Considerably less power draw - Will redraw when you swap from orthographic to perspective and vice versa.
* | | Use Key enum instead of plain integersAaron Franke2021-08-101-1/+1
| |/ |/|
* | Organize methods in Viewport and explicitly name 3D methods with 3DAaron Franke2021-08-101-5/+5
| |
* | Use doubles for time in many other placesAaron Franke2021-08-091-3/+3
|/
* Minor visual improvements to the viewport rotation gizmo (again)Lightning_A2021-08-061-18/+15
|
* Merge pull request #51164 from TokageItLab/fix-gizmo-transform-scalingRémi Verschelde2021-08-051-17/+16
|\ | | | | Fixed gizmo forced implicit normalization and inconsistent rotation
| * Fixed gizmo forced uniform scale and inconsistent rotationSilc 'Tokage' Renew2021-08-031-17/+16
| |
* | Merge pull request #51215 from akien-mga/shortcut-rename-property-to-eventRémi Verschelde2021-08-051-1/+1
|\ \ | | | | | | Shortcut: Rename `shortcut` property to `event`
| * | Shortcut: Rename `shortcut` property to `event`Rémi Verschelde2021-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Having a property which has the same name as its class leads to confusing situations (e.g. `BaseButton` has a `shortcut` property of type `Shortcut` which has a `shortcut` property of type `InputEvent`). Also renames `is_event` to `matches_event`, and `is_valid` to `has_valid_event` to better reflect what the methods check.
* | | Merge pull request #51250 from ↵Rémi Verschelde2021-08-051-2/+4
|\ \ \ | |/ / |/| | | | | | | | LightningAA/minor_view_rotation_gizmo_improvements-4.0 Minor visual improvements to the view rotation gizmo
| * | Minor improvements to the view rotation gizmoLightning_A2021-08-041-2/+4
| | |
* | | Merge pull request #51118 from SirQuartz/patch-39Rémi Verschelde2021-08-031-0/+2
|\ \ \ | |_|/ |/| | Make the "View" menu in the 3D viewport stay open when selecting a checkbox
| * | Make the "View" menu in 3D view toolbar stay open when selecting a checkboxNicholas Huelin2021-07-311-0/+2
| | | | | | | | | This pull request fixes an issue where the "View" menu in the 3D view toolbar would close when you selected either the "View Origin" or "View Grid" checkboxes. This was inconvenient and wasted time by making you have to reopen the menu in order to get to other settings anytime you changed this.
* | | Use real_t in editor pluginsAaron Franke2021-08-011-70/+64
| |/ |/| | | | | Also use const more often and delete dead code in CanvasItemEditor
* | Make action names translatableHaoyu Qiu2021-07-311-2/+8
|/
* Merge pull request #35891 from Calinou/editor-viewport-highlight-context-menusRémi Verschelde2021-07-301-2/+26
|\ | | | | Highlight context menu items at the top of the 2D/3D viewports
| * Highlight context menu items at the top of the 2D/3D viewportsHugo Locurcio2021-07-271-2/+26
| | | | | | | | | | | | | | | | This makes it easier to notice that some menu items only appear when specific nodes are selected. This change applies to both 2D and 3D editors, including both plugin-based menus and the hardcoded 2D layout/animation contextual menus.
* | Make the focus outline translucent for editor viewportsHugo Locurcio2021-07-301-1/+1
| | | | | | | | | | This makes the focus outline less distracting on the 2D and 3D editor viewports.
* | Make drag and drop into viewport add to root node by defaultfoxydevloper2021-07-291-12/+16
| | | | | | | | | | When dragging and dropping a texture, mesh, or scene from the FileSystem into the 2D or 3D viewport, it will be added as a child of the current scene's root node.
* | Merge pull request #50597 from Calinou/3d-editor-improve-manipulation-gizmoRémi Verschelde2021-07-281-11/+16
|\ \ | |/ |/| Improve the 3D editor manipulation gizmo
| * Improve the 3D editor manipulation gizmoHugo Locurcio2021-07-191-11/+16
| | | | | | | | | | | | | | | | | | | | | | | | - Allow some tolerance when clicking the plane move/scale, even if the click is actually slightly outside the plane (similar to Blender). - Make the rotate manipulation circles visually thinner to be less distracting. - Make the hovered color less saturated to be more distinguishable from the non-hovered state. - Don't set brightness above 1.0 to prevent the gizmo from glowing when hovered.
* | Merge pull request #50836 from Calinou/3d-editor-camera-preview-add-shortcutRémi Verschelde2021-07-271-0/+1
|\ \ | | | | | | Add shortcut to toggle the 3D editor's camera preview
| * | Add shortcut to toggle the 3D editor's camera previewHugo Locurcio2021-07-251-0/+1
| | | | | | | | | | | | | | | | | | A Camera3D node still has to be selected to initially enable camera preview, but another node can then be selected and the preview can be disabled by pressing the shortcut key again.
* | | Merge pull request #50933 from JFonS/gizmo_rework_improvementsRémi Verschelde2021-07-271-25/+43
|\ \ \
| * | | Fixes to editor subgizmosjfons2021-07-271-25/+43
| | | | | | | | | | | | | | | | | | | | | | | | * Fixed subgizmo editing on scaled nodes. * Added more clarifications on the coordinate space of subgizmos. * Given input priority to the transform gizmo over subgizmo selection.
* | | | Fix icon colors in 3d editor on theme changingYuri Roubinsky2021-07-261-82/+74
|/ / /
* | | Removing bounding box calculations from 3D scene drag and drop and collide ↵SaracenOne2021-07-261-52/+5
| | | | | | | | | | | | against physics rather than visual geometry.
* | | Merge pull request #48620 from Calinou/editor-3d-hide-selection-box-no-gizmosRémi Verschelde2021-07-261-2/+6
|\ \ \ | |/ / |/| | Hide the 3D editor selection box when View Gizmos is disabled
| * | Hide the 3D editor selection box when View Gizmos is disabledHugo Locurcio2021-05-101-2/+6
| | |
* | | Merge pull request #50791 from foxydevloper/select-mode-tooltip-improvationRémi Verschelde2021-07-241-2/+1
|\ \ \ | | | | | | | | Improve select tool's tooltip for 2D and 3D
| * | | Improve select tool's tooltipfoxydevloper2021-07-231-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Makes tips clearer and more consistent. - Removes outdated "shift+v" that doesn't work - Adds Ctrl+RMB for adding nodes at position - Removes tip for non-existent Alt+Drag in 3D select tool
* | | | Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-32/+32
|/ / /