0
在Maya/C++中我有一个MProgressWindow
类引用。然而,窗口保持在0%(甚至有时保持空白)并且不会增加。我究竟做错了什么?MProgressWindow在Autodesk Maya API中不刷新
MProgressWindow P ;
P.reserve() ;
P.setProgressMin(0) ;
P.setProgressMax(1000) ;
P.startProgress() ;
for (int i = 0; i < 1000; i++) {
// do some work
if (i % 100 == 0) {
P.setProgressStatus("Progress "+ MString() + i + "/" + MString() + P.progressMax()) ;
P.advanceProgress(100) ;
}
}
P.endProgress() ;
@LaurentCrivello,没有帮助? – cyrille