From a96bd7fe9155492d1f1d4d316911d0526fd23ba6 Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Thu, 26 Feb 2026 08:14:21 -0600 Subject: [PATCH] rm push/pop --- gltf.cm | 6 +++--- tests/readout.ce | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gltf.cm b/gltf.cm index 7409ec6..e33d2cd 100644 --- a/gltf.cm +++ b/gltf.cm @@ -50,7 +50,7 @@ function warn(asset, msg, mode) { var _mode = mode if (_mode == null) _mode = "collect" if (_mode == "throw") disrupt - asset.warnings.push(msg) + asset.warnings[] = msg } function parse_data_uri(uri) { @@ -359,7 +359,7 @@ gltf.collect_dependencies = function(asset) { if (doc.buffers) { for (i = 0; i < length(doc.buffers); i++) { b = doc.buffers[i] - if (b && b.uri) deps.buffers.push(b.uri) + if (b && b.uri) deps.buffers[] = b.uri } } @@ -367,7 +367,7 @@ gltf.collect_dependencies = function(asset) { if (doc.images) { for (i = 0; i < length(doc.images); i++) { im2 = doc.images[i] - if (im2 && im2.uri) deps.images.push(im2.uri) + if (im2 && im2.uri) deps.images[] = im2.uri } } diff --git a/tests/readout.ce b/tests/readout.ce index 1337523..0e15df5 100644 --- a/tests/readout.ce +++ b/tests/readout.ce @@ -89,7 +89,7 @@ for (i = 0; i < length(model.meshes); i++) { log.console(` primitive[${j}]: topology: ${p.topology}, indices: ${p.indices}, material: ${p.material}`) ak = array(p.attributes) parts = [] - for (k = 0; k < length(ak); k++) parts.push(ak[k] + ': ' + text(p.attributes[ak[k]])) + for (k = 0; k < length(ak); k++) parts[] = ak[k] + ': ' + text(p.attributes[ak[k]]) log.console(' attributes: {' + text(parts, ', ') + '}') } }