diff --git a/src/cb_dasIMGUI.h b/src/cb_dasIMGUI.h index 29cad65..7bf3984 100644 --- a/src/cb_dasIMGUI.h +++ b/src/cb_dasIMGUI.h @@ -161,7 +161,7 @@ struct imguiTempFn { bool anyString = false; for ( auto &arg : fn->arguments ) { - if ( arg->type->constant && arg->type->ref && arg->type->dim.size() == 0 ) { + if ( arg->type->constant && arg->type->ref && !arg->type->isArray() ) { if ( arg->type->baseType == Type::tFloat2 || arg->type->baseType == Type::tFloat4 ) { arg->type->ref = false; } diff --git a/src/dasIMGUI.main.cpp b/src/dasIMGUI.main.cpp index 615c4b1..0b5f4ae 100644 --- a/src/dasIMGUI.main.cpp +++ b/src/dasIMGUI.main.cpp @@ -820,7 +820,7 @@ namespace das { for ( auto & pfn : this->functions.each() ) { bool anyString = false; for ( auto & arg : pfn->arguments ) { - if ( arg->type->constant && arg->type->ref && arg->type->dim.size()==0 ) { + if ( arg->type->constant && arg->type->ref && !arg->type->isArray() ) { if ( arg->type->baseType==Type::tFloat2 || arg->type->baseType==Type::tFloat4 ) { arg->type->ref = false; }