Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
AR link: ?v= on the page URL so phones fetch the current page
islandmed62ad34cc30dd
diff --git a/src/link/PhoneLink.cpp b/src/link/PhoneLink.cppindex af1dc89f..cebe63a6 100644--- a/src/link/PhoneLink.cpp+++ b/src/link/PhoneLink.cpp@@ -1084,7 +1084,8 @@ bool PhoneLink::createFaceLink(std::string& faceUrl, std::string& error, bool arconst std::vector<std::string> relays = relayUrls();// Everything after '#' stays on the phone: the website never sees the offer, the token or the key.std::string page = options_.siteUrl;- if (ar) page = page.substr(0, page.rfind('/') + 1) + "ar.html";+ // ?v= changes with each page change that SculptForge depends on, so phones don't use a cached older copy.+ if (ar) page = page.substr(0, page.rfind('/') + 1) + "ar.html?v=3";// AR: the model also goes through our relay (its /blob/ path), for phones whose browser can't reach this computer.std::string blobUrl;if (ar)diff --git a/tests/test_phone_link.cpp b/tests/test_phone_link.cppindex 4c8cf2c1..23cfdf85 100644--- a/tests/test_phone_link.cpp+++ b/tests/test_phone_link.cpp@@ -588,7 +588,7 @@ TEST(ar_link_sends_the_model_over_webrtc) {HttpRequest r = request("GET", "/api/face-link", link.token());r.query = "mode=ar&scope=scene&size=35";const std::string url = parseJson(link.handle(r).body)["url"].asString();- CHECK(url.rfind("https://example.org/link/ar.html#v=1&", 0) == 0);+ CHECK(url.rfind("https://example.org/link/ar.html?v=3#v=1&", 0) == 0);const std::string fragment = url.substr(url.find('#') + 1);CHECK(queryParameter(fragment, "m") == "ar");CHECK(queryParameter(fragment, "s") == "scene");