Embind: Skip over preset values when extracting first outstanding emval
get_first_emval should ignore the preset elements of the handle array.
This commit is contained in:
Родитель
1f24a9dff7
Коммит
847ba47373
|
@ -38,7 +38,7 @@ var LibraryEmVal = {
|
|||
|
||||
$get_first_emval__deps: ['$emval_handle_array'],
|
||||
$get_first_emval: function() {
|
||||
for (var i = 1; i < emval_handle_array.length; ++i) {
|
||||
for (var i = 5; i < emval_handle_array.length; ++i) {
|
||||
if (emval_handle_array[i] !== undefined) {
|
||||
return emval_handle_array[i];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче