@@ -124,20 +124,6 @@ void CesiumFeaturesMetadataViewer::SyncAndRebuildUI() {
124124 TSharedRef<SVerticalBox> pContent = this ->_pContent .ToSharedRef ();
125125 pContent->ClearChildren ();
126126
127- pContent->AddSlot ().AutoHeight ().HAlign (HAlign_Center)
128- [SNew (SButton)
129- .ButtonStyle (FCesiumEditorModule::GetStyle (), " CesiumButton" )
130- .TextStyle (FCesiumEditorModule::GetStyle (), " CesiumButtonText" )
131- .ContentPadding (FMargin (1.0 , 1.0 ))
132- .HAlign (EHorizontalAlignment::HAlign_Center)
133- .Text (FText::FromString (TEXT (" Sync" )))
134- .ToolTipText (FText::FromString (TEXT (
135- " Syncs the feature ID sets and metadata from currently-loaded tiles in the ACesium3DTileset." )))
136- .OnClicked_Lambda ([this ]() {
137- this ->SyncAndRebuildUI ();
138- return FReply::Handled ();
139- })];
140-
141127 pContent->AddSlot ().AutoHeight ()
142128 [SNew (SHeader)
143129 .Content ()[SNew (STextBlock)
@@ -155,8 +141,8 @@ void CesiumFeaturesMetadataViewer::SyncAndRebuildUI() {
155141 pContent->AddSlot ().AutoHeight ()
156142 [SNew (STextBlock)
157143 .AutoWrapText (true )
158- .Text (FText::FromString (
159- TEXT ( " This tileset does not contain any glTF metadata." )))];
144+ .Text (FText::FromString (TEXT (
145+ " This tileset does not contain any glTF metadata in its current view ." )))];
160146 }
161147
162148 pContent->AddSlot ().AutoHeight ()
@@ -176,9 +162,27 @@ void CesiumFeaturesMetadataViewer::SyncAndRebuildUI() {
176162 pContent->AddSlot ().AutoHeight ()
177163 [SNew (STextBlock)
178164 .AutoWrapText (true )
179- .Text (FText::FromString (
180- TEXT ( " This tileset does not contain any glTF features." )))];
165+ .Text (FText::FromString (TEXT (
166+ " This tileset does not contain any glTF features in its current view ." )))];
181167 }
168+
169+ pContent->AddSlot ()
170+ .AutoHeight ()
171+ .Padding (0 .0f , 10 .0f )
172+ .VAlign (VAlign_Bottom)
173+ .HAlign (HAlign_Center)
174+ [SNew (SButton)
175+ .ButtonStyle (FCesiumEditorModule::GetStyle (), " CesiumButton" )
176+ .TextStyle (FCesiumEditorModule::GetStyle (), " CesiumButtonText" )
177+ .ContentPadding (FMargin (1.0 , 1.0 ))
178+ .HAlign (EHorizontalAlignment::HAlign_Center)
179+ .Text (FText::FromString (TEXT (" Sync with Current View" )))
180+ .ToolTipText (FText::FromString (TEXT (
181+ " Syncs the feature ID sets and metadata from currently-loaded tiles in the ACesium3DTileset." )))
182+ .OnClicked_Lambda ([this ]() {
183+ this ->SyncAndRebuildUI ();
184+ return FReply::Handled ();
185+ })];
182186}
183187
184188namespace {
@@ -966,7 +970,8 @@ TProperty* findProperty(
966970 }
967971
968972 if (!pPropertySource) {
969- int32 index = sources.Emplace (sourceName, TArray<TProperty>());
973+ int32 index =
974+ sources.Emplace (TPropertySource{sourceName, TArray<TProperty>()});
970975 pPropertySource = &sources[index];
971976 }
972977
0 commit comments