Forgot to make these recursive in UISceneNode, needed by the UIWidgetInspector:

/** Enables or disables focus highlighting in this scene and embedded UI scenes. */
	void setHighlightFocusRecursive( bool highlight );

	/** Enables or disables box debug drawing in this scene and embedded UI scenes. */
	void setDrawBoxesRecursive( bool draw );

	/** Enables or disables debug-data drawing in this scene and embedded UI scenes. */
	void setDrawDebugDataRecursive( bool debug );
This commit is contained in:
Martín Lucas Golini
2026-07-05 20:00:50 -03:00
parent ab14972fd3
commit 87c56142ee
4 changed files with 59 additions and 4 deletions
@@ -250,16 +250,40 @@ UTEST( UISceneNode, NestedSceneRebindsHostServicesOnSceneChange ) {
EXPECT_TRUE( nestedScene->getChildUISceneNodes()[0] == nestedChildScene );
hostSceneA->setHighlightOverRecursive( true );
hostSceneA->setHighlightFocusRecursive( true );
hostSceneA->setDrawBoxesRecursive( true );
hostSceneA->setDrawDebugDataRecursive( true );
EXPECT_TRUE( hostSceneA->getHighlightOver() );
EXPECT_TRUE( hostSceneA->getHighlightFocus() );
EXPECT_TRUE( hostSceneA->getDrawBoxes() );
EXPECT_TRUE( hostSceneA->getDrawDebugData() );
EXPECT_TRUE( nestedScene->getHighlightOver() );
EXPECT_TRUE( nestedScene->getHighlightFocus() );
EXPECT_TRUE( nestedScene->getDrawBoxes() );
EXPECT_TRUE( nestedScene->getDrawDebugData() );
EXPECT_TRUE( nestedChildScene->getHighlightOver() );
EXPECT_TRUE( nestedChildScene->getHighlightFocus() );
EXPECT_TRUE( nestedChildScene->getDrawBoxes() );
EXPECT_TRUE( nestedChildScene->getDrawDebugData() );
nestedScene->setHighlightOverRecursive( false );
nestedScene->setHighlightFocusRecursive( false );
nestedScene->setDrawBoxesRecursive( false );
nestedScene->setDrawDebugDataRecursive( false );
EXPECT_TRUE( hostSceneA->getHighlightOver() );
EXPECT_TRUE( hostSceneA->getHighlightFocus() );
EXPECT_TRUE( hostSceneA->getDrawBoxes() );
EXPECT_TRUE( hostSceneA->getDrawDebugData() );
EXPECT_FALSE( nestedScene->getHighlightOver() );
EXPECT_FALSE( nestedScene->getHighlightFocus() );
EXPECT_FALSE( nestedScene->getDrawBoxes() );
EXPECT_FALSE( nestedScene->getDrawDebugData() );
EXPECT_FALSE( nestedChildScene->getHighlightOver() );
EXPECT_FALSE( nestedChildScene->getHighlightFocus() );
EXPECT_FALSE( nestedChildScene->getDrawBoxes() );
EXPECT_FALSE( nestedChildScene->getDrawDebugData() );
hostWidget->setParent( hostSceneB->getRoot() );