summaryrefslogtreecommitdiff
path: root/editor/scene_tree_dock.cpp
AgeCommit message (Collapse)Author
2021-11-29Fix scene tree dock icon not switching colors on theme changeHugo Locurcio
This fixes the "three vertical dots" button at the right of the scene tree dock when switching from a dark theme to a light theme or vice versa.
2021-11-22Added `reset_size` method to `Control` and `Window` classesYuri Roubinsky
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-12Use Enter instead of F2 as an editor renaming shortcut on macOSHugo Locurcio
2021-11-12Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde
2021-11-11Fix node naming in scene tree dockkobewi
2021-11-07Unify determination of default property valuesPedro J. Estébanez
2021-11-04Add is_built_in() method to Resourcekobewi
2021-11-03Merge pull request #54072 from KoBeWi/hrcr_is_dedRémi Verschelde
2021-11-03Infer shader type based on edited nodekobewi
2021-10-28Remove node_hrcr hackkobewi
2021-10-06Merge pull request #45699 from TokageItLab/implement-skeleton-editor-gizmoRémi Verschelde
Implement Skeleton Editor Gizmo
2021-10-07Implemented SkeletonEditorGizmoSilc Renew
Co-authored-by: Lyuma <xn.lyuma@gmail.com>
2021-10-04Merge pull request #51413 from KoBeWi/🚗Rémi Verschelde
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-30Rename Node's `filename` property to `scene_file_path` for clarityHugo Locurcio
2021-09-29Merge pull request #52172 from kleonc/scene-tree-dock-ensure-single-selectRémi Verschelde
2021-09-15Allow disabling the RegEx module in the editorAaron Franke
2021-09-09Save branch as scene by dropping to filesystemkobewi
2021-08-28SceneTreeDock Ensure to deactivate multi edit when selection changes to a ↵kleonc
single node
2021-08-23Entirely removes BIND_VMETHOD in favor of GDVIRTUALreduz
* `_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.
2021-08-11Focus the scene tree dock after hitting one of the "Create Root Node:" buttonsLightning_A
2021-08-12Move the option to new menukobewi
2021-08-12Add option to not expand tree on node selectkobewi
2021-08-07Added editor dialog for easily creating shaders.Yuri Roubinsky
2021-07-25Use const references where possible for List range iteratorsRémi Verschelde
2021-07-23Use C++ iterators for Lists in many situationsAaron Franke
2021-07-22Merge pull request #50319 from nekomatata/optimize-node-path-checkRémi Verschelde
Optimize NodePath update when renaming or deleting nodes in the editor
2021-07-20Fix Change Node Type after Add Node Herekobewi
2021-07-19Merge pull request #50517 from KoBeWi/🌳💣Rémi Verschelde
Assign value to property by dropping to scene tree
2021-07-19Assign value to property by dropping to scene treekobewi
2021-07-18Optimize StringName usagereduz
* Added a new macro SNAME() that constructs and caches a local stringname. * Subsequent usages use the cached version. * Since these use a global static variable, a second refcounter of static usages need to be kept for cleanup time. * Replaced all theme usages by this new macro. * Replace all signal emission usages by this new macro. * Replace all call_deferred usages by this new macro. This is part of ongoing work to optimize GUI and the editor.
2021-07-13Add header theme type variations to labelskobewi
2021-07-12Merge pull request #49725 from EricEzaM/multi-node-picking-fixesRémi Verschelde
Fixes for multi-node editing interactions.
2021-07-09Optimize NodePath update when renaming or deleting nodes in the editorPouleyKetchoupp
Now the process uses a Map to lookup node pointers instead of iterating over all modified node paths in a list and comparing them for each property to check. The process also avoids checking properties with empty node paths and does an early exit on deleted nodes to avoid checking the node and its descendants. Also made a minor change in NodePath::rel_path_to() to avoid resizing a Vector many times for long paths (with copy-on-write each time). Now it's down to 2 resize calls in any case.
2021-07-08Fix node list with Add Node Herekobewi
2021-07-07Add a root Node3D automatically if absent when adding preview sun and skyHugo Locurcio
This makes for a smoother prototyping process compared to displaying an error message.
2021-06-30Coding style fix in editor NodePath updatePouleyKetchoupp
Added r_ prefix for reference arguments that can be modified.
2021-06-29Merge pull request #49812 from nekomatata/node-path-editor-updateRémi Verschelde
NodePath properly updated in the editor in more cases when nodes are moved or renamed
2021-06-28NodePath properly updated in the editor in more casesPouleyKetchoupp
Fix more cases of node path needing an update when nodes are renamed or moved in the editor. Built-in node properties: Before, node paths were checked only for script export variables. Now all properties are checked from the node, which includes built-in node properties. Allows proper node path updates for nodes like remote transform, physics joints, etc. Arrays and dictionaries: Node paths nested in array and dictionary properties are now also updated in the editor. Also update the documentation to be clear about node path update in the editor and at runtime. Co-authored-by: latorril <latorril@gmail.com>
2021-06-19Rename `instance()`->`instantiate()` when it's a verbLightning_A
2021-06-19Fixes for multi-node editing interactions.Eric M
1. When having 2 nodes selected, deselecting one in the ScemeTreeDock would keep the inspector in MultiNodeEdit rather than editing the one remaining node directly. This is now fixed. Closes #49451 2. In the Node3D editor, Shift-Selecting a region (drag selecting) would *deselect* nodes which were already selected, and select ones which were not, essentially inverting the selection. This is now fixed - shift-drag-selecting will only add nodes to the selection. To deselect, individual nodes can be clicked on. I am not sure if there is an issue open for this - it was a bug I found while testing other changes. 3. Other minor code cleanup.
2021-06-16Revert "Fix SceneTreeDock::_selection_changed to handle to single selection ↵Rémi Verschelde
from Multiple Selection"
2021-06-10[49451] fix: Control _selection_changed from Multiple SelectionAitor Cereceto
2021-06-07Don't remap resources belonging to instancekobewi
2021-05-17Improve TreeItem API and allow to move nodestrollodel
2021-05-07Merge pull request #47530 from likeich/add_instance_child_shortcutRémi Verschelde
Adds command+shift+a shortcut to instance a scene
2021-05-06Remove extra separatorKyle
Removes an extra separator when Scene Tree Editing is disabled. Discussed in #48518
2021-05-06Fixed cut/copy/paste visibilityKyle
Fixes #48514 by moving the visibility of these buttons into their own if statement that depends on if scene tree editing is allowed. Previously it was under the script editing setting which is unexpected as it works with nodes and the scene tree.
2021-04-30Implement Particle Trailsreduz
-Enable the trails and set the length in seconds -Provide a mesh with a skeleton and a skin -Or, alternatively use one of the built-in TubeTrailMesh/RibbonTrailMesh -Works deterministically -Fixed particle collisions (were broken) -Not working in 2D yet (that will happen next)