@@ -184,8 +184,6 @@ void buildUI_object(tsd::Object &o,
184
184
185
185
for (size_t i = 0 ; i < o.numParameters (); i++) {
186
186
auto &p = o.parameterAt (i);
187
- if (p.value ().holdsObject () && !anari::isArray (p.value ().type ()))
188
- continue ;
189
187
ImGui::TableNextRow ();
190
188
buildUI_parameter (p, ctx, useTableForParameters);
191
189
}
@@ -406,10 +404,18 @@ void buildUI_parameter(
406
404
}
407
405
} break ;
408
406
default :
409
- if (useTable)
410
- ImGui::Text (" %s" , anari::toString (type));
411
- else
412
- ImGui::BulletText (" %s | %s" , name, anari::toString (type));
407
+ if (anari::isObject (type)) {
408
+ const auto idx = pVal.getAsObjectIndex ();
409
+ if (useTable)
410
+ ImGui::Text (" [%zu] %s" , idx, anari::toString (type));
411
+ else
412
+ ImGui::BulletText (" %s | [%zu] %s" , name, idx, anari::toString (type));
413
+ } else {
414
+ if (useTable)
415
+ ImGui::Text (" %s" , anari::toString (type));
416
+ else
417
+ ImGui::BulletText (" %s | %s" , name, anari::toString (type));
418
+ }
413
419
break ;
414
420
}
415
421
@@ -418,7 +424,7 @@ void buildUI_parameter(
418
424
if (ImGui::IsItemHovered ()) {
419
425
ImGui::BeginTooltip ();
420
426
if (isArray) {
421
- const auto idx = pVal.getAsObjectIndex ();
427
+ const auto idx = pVal.getAsObjectIndex ();
422
428
const auto &a = *ctx.getObject <Array>(idx);
423
429
ImGui::Text (" idx: [%zu]" , idx);
424
430
const auto t = a.type ();
0 commit comments