Merge branch 'main' of https://github.com/secondlife/viewer
commit
8d5d9a7e59
|
|
@ -5,7 +5,7 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: ["main", "release/*", "project/*"]
|
branches: ["main", "release/*", "project/*"]
|
||||||
tags: ["Second_Life_*"]
|
tags: ["Second_Life*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
@ -176,16 +176,22 @@ jobs:
|
||||||
# seen before, so numerous tests don't know about it.
|
# seen before, so numerous tests don't know about it.
|
||||||
[[ "$arch" == "MINGW6" ]] && arch=CYGWIN
|
[[ "$arch" == "MINGW6" ]] && arch=CYGWIN
|
||||||
export AUTOBUILD="$(which autobuild)"
|
export AUTOBUILD="$(which autobuild)"
|
||||||
# Build with a tag like "Second_Life_Project_Shiny#abcdef0" to get a
|
|
||||||
# viewer channel "Second Life Project Shiny" (ignoring "#hash",
|
# determine the viewer channel from the branch name
|
||||||
# needed to disambiguate tags).
|
branch=$AUTOBUILD_VCS_BRANCH
|
||||||
if [[ "$GITHUB_REF_TYPE" == "tag" && "${GITHUB_REF_NAME:0:12}" == "Second_Life_" ]]
|
IFS='/' read -ra ba <<< $branch
|
||||||
then viewer_channel="${GITHUB_REF_NAME%#*}"
|
prefix=${ba[0]}
|
||||||
export viewer_channel="${viewer_channel//_/ }"
|
if [ "$prefix" == "project" ]; then
|
||||||
else export viewer_channel="Second Life Test"
|
IFS='_' read -ra prj <<< "${ba[1]}"
|
||||||
|
# uppercase first letter of each word
|
||||||
|
export viewer_channel="Second Life Project ${prj[*]^}"
|
||||||
|
elif [[ "$prefix" == "release" || "$prefix" == "main" ]];
|
||||||
|
then
|
||||||
|
export viewer_channel="Second Life Release"
|
||||||
|
else
|
||||||
|
export viewer_channel="Second Life Test"
|
||||||
fi
|
fi
|
||||||
echo "viewer_channel=$viewer_channel" >> "$GITHUB_OUTPUT"
|
echo "viewer_channel=$viewer_channel" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
# On windows we need to point the build to the correct python
|
# On windows we need to point the build to the correct python
|
||||||
# as neither CMake's FindPython nor our custom Python.cmake module
|
# as neither CMake's FindPython nor our custom Python.cmake module
|
||||||
# will resolve the correct interpreter location.
|
# will resolve the correct interpreter location.
|
||||||
|
|
@ -354,7 +360,8 @@ jobs:
|
||||||
release:
|
release:
|
||||||
needs: [build, sign-and-package-windows, sign-and-package-mac]
|
needs: [build, sign-and-package-windows, sign-and-package-mac]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life_')
|
# Build with a tag like "Second_Life#abcdef0" to generate a release page (used for builds we are planning to deploy).
|
||||||
|
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'Second_Life')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
1
build.sh
1
build.sh
|
|
@ -178,6 +178,7 @@ pre_build()
|
||||||
|
|
||||||
"$autobuild" configure --quiet -c $variant \
|
"$autobuild" configure --quiet -c $variant \
|
||||||
${eval_autobuild_configure_parameters:---} \
|
${eval_autobuild_configure_parameters:---} \
|
||||||
|
-DLL_TESTS:BOOL=ON \
|
||||||
-DPACKAGE:BOOL=ON \
|
-DPACKAGE:BOOL=ON \
|
||||||
-DHAVOK:BOOL="$HAVOK" \
|
-DHAVOK:BOOL="$HAVOK" \
|
||||||
-DRELEASE_CRASH_REPORTING:BOOL="$RELEASE_CRASH_REPORTING" \
|
-DRELEASE_CRASH_REPORTING:BOOL="$RELEASE_CRASH_REPORTING" \
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ namespace tut
|
||||||
done = res;
|
done = res;
|
||||||
*done = false;
|
*done = false;
|
||||||
}
|
}
|
||||||
virtual void completed(bool success, LLImageRaw* raw, LLImageRaw* aux)
|
virtual void completed(bool success, LLImageRaw* raw, LLImageRaw* aux, U32)
|
||||||
{
|
{
|
||||||
*done = true;
|
*done = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -122,13 +122,20 @@ public:
|
||||||
F32 mRoughnessFactor = 1.f;
|
F32 mRoughnessFactor = 1.f;
|
||||||
F32 mAlphaCutoff = 0.5f;
|
F32 mAlphaCutoff = 0.5f;
|
||||||
|
|
||||||
bool mDoubleSided = false;
|
|
||||||
AlphaMode mAlphaMode = ALPHA_MODE_OPAQUE;
|
AlphaMode mAlphaMode = ALPHA_MODE_OPAQUE;
|
||||||
|
|
||||||
|
bool mDoubleSided = false;
|
||||||
|
|
||||||
// override specific flags for state that can't use off-by-epsilon or UUID hack
|
// override specific flags for state that can't use off-by-epsilon or UUID hack
|
||||||
bool mOverrideDoubleSided = false;
|
bool mOverrideDoubleSided = false;
|
||||||
bool mOverrideAlphaMode = false;
|
bool mOverrideAlphaMode = false;
|
||||||
|
|
||||||
|
// These fields are local to viewer and are a part of local bitmap support
|
||||||
|
typedef std::map<LLUUID, LLUUID> local_tex_map_t;
|
||||||
|
local_tex_map_t mTrackingIdToLocalTexture;
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
// get a UUID based on a hash of this LLGLTFMaterial
|
// get a UUID based on a hash of this LLGLTFMaterial
|
||||||
LLUUID getHash() const;
|
LLUUID getHash() const;
|
||||||
|
|
||||||
|
|
@ -229,10 +236,6 @@ public:
|
||||||
virtual bool replaceLocalTexture(const LLUUID& tracking_id, const LLUUID &old_id, const LLUUID& new_id);
|
virtual bool replaceLocalTexture(const LLUUID& tracking_id, const LLUUID &old_id, const LLUUID& new_id);
|
||||||
virtual void updateTextureTracking();
|
virtual void updateTextureTracking();
|
||||||
|
|
||||||
// These fields are local to viewer and are a part of local bitmap support
|
|
||||||
typedef std::map<LLUUID, LLUUID> local_tex_map_t;
|
|
||||||
local_tex_map_t mTrackingIdToLocalTexture;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static LLVector2 vec2FromJson(const std::map<std::string, tinygltf::Value>& object, const char* key, const LLVector2& default_value);
|
static LLVector2 vec2FromJson(const std::map<std::string, tinygltf::Value>& object, const char* key, const LLVector2& default_value);
|
||||||
static F32 floatFromJson(const std::map<std::string, tinygltf::Value>& object, const char* key, const F32 default_value);
|
static F32 floatFromJson(const std::map<std::string, tinygltf::Value>& object, const char* key, const F32 default_value);
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ namespace tut
|
||||||
#if LL_WINDOWS
|
#if LL_WINDOWS
|
||||||
// If any fields are added/changed, these tests should be updated (consider also updating ASSET_VERSION in LLGLTFMaterial)
|
// If any fields are added/changed, these tests should be updated (consider also updating ASSET_VERSION in LLGLTFMaterial)
|
||||||
// This test result will vary between compilers, so only test a single platform
|
// This test result will vary between compilers, so only test a single platform
|
||||||
ensure_equals("fields supported for GLTF (sizeof check)", sizeof(LLGLTFMaterial), 216);
|
ensure_equals("fields supported for GLTF (sizeof check)", sizeof(LLGLTFMaterial), 224);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
ensure_equals("LLGLTFMaterial texture info count", (U32)LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT, 4);
|
ensure_equals("LLGLTFMaterial texture info count", (U32)LLGLTFMaterial::GLTF_TEXTURE_INFO_COUNT, 4);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue