Skip to content

Commit

Permalink
Add instanced scene indicator to scene node selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 14, 2024
1 parent 2eaf767 commit 52a1884
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/editor/scene_node_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ void OrchestratorSceneNodeSelector::_add_nodes(Node* p_node, TreeItem* p_parent)
item->set_icon(0, icon);
item->set_metadata(0, _get_scene_node()->get_path_to(p_node));

if (p_node != _get_scene_node() && !p_node->get_scene_file_path().is_empty())
item->add_button(0, SceneUtils::get_editor_icon("InstanceOptions"));

if (part_of_subscene)
{
const Color color = SceneUtils::get_editor_color("warning_color");
Expand Down

0 comments on commit 52a1884

Please sign in to comment.