fix: patch Vec3::toOf() glm branch to return glm::vec3 not ofVec3f
This commit is contained in:
@ -171,6 +171,12 @@ for f in $(grep -l "unique_ptr" src/*.h 2>/dev/null || true); do
|
|||||||
grep -q "<memory>" "$f" || sed -i '1i #include <memory>' "$f"
|
grep -q "<memory>" "$f" || sed -i '1i #include <memory>' "$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# 4c. Fix Vec3.cpp: in the #else (glm) branch, toOf() incorrectly returns
|
||||||
|
# ofVec3f instead of glm::vec3 — a bug in ofxPiMapper upstream.
|
||||||
|
sed -i '/^#else/,/^#endif/{
|
||||||
|
s/return ofVec3f(x, y, z);/return glm::vec3(x, y, z);/
|
||||||
|
}' src/Types/Vec3.cpp
|
||||||
|
|
||||||
# ── 5. Cross-compile ofxPiMapper for aarch64 ────────────────────────────────
|
# ── 5. Cross-compile ofxPiMapper for aarch64 ────────────────────────────────
|
||||||
# OF's Makefile supports PLATFORM_ARCH and CROSS_COMPILING as make variables —
|
# OF's Makefile supports PLATFORM_ARCH and CROSS_COMPILING as make variables —
|
||||||
# no need to fake uname. Passing them directly bypasses the uname -m check.
|
# no need to fake uname. Passing them directly bypasses the uname -m check.
|
||||||
|
|||||||
Reference in New Issue
Block a user