Merge branch 'master' into patch-1
commit
e77ab52dba
|
@ -43,7 +43,7 @@ jobs:
|
||||||
toolchain: ninja-vs-win64-cxx17
|
toolchain: ninja-vs-win64-cxx17
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: lukka/get-cmake@latest
|
- uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ jobs:
|
||||||
|
|
||||||
- name: Checkout Hunter toolchains
|
- name: Checkout Hunter toolchains
|
||||||
if: endsWith(matrix.name, 'hunter')
|
if: endsWith(matrix.name, 'hunter')
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: cpp-pm/polly
|
repository: cpp-pm/polly
|
||||||
path: cmake/polly
|
path: cmake/polly
|
||||||
|
|
|
@ -11,7 +11,7 @@ jobs:
|
||||||
name: adress-sanitizer
|
name: adress-sanitizer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: lukka/get-cmake@latest
|
- uses: lukka/get-cmake@latest
|
||||||
- uses: lukka/set-shell-env@v1
|
- uses: lukka/set-shell-env@v1
|
||||||
with:
|
with:
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
name: undefined-behavior-sanitizer
|
name: undefined-behavior-sanitizer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: lukka/get-cmake@latest
|
- uses: lukka/get-cmake@latest
|
||||||
- uses: lukka/set-shell-env@v1
|
- uses: lukka/set-shell-env@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -517,13 +517,13 @@ bool STLImporter::LoadBinaryFile() {
|
||||||
const ai_real invVal((ai_real)1.0 / (ai_real)31.0);
|
const ai_real invVal((ai_real)1.0 / (ai_real)31.0);
|
||||||
if (bIsMaterialise) // this is reversed
|
if (bIsMaterialise) // this is reversed
|
||||||
{
|
{
|
||||||
clr->r = (color & 0x31u) * invVal;
|
clr->r = (color & 0x1fu) * invVal;
|
||||||
clr->g = ((color & (0x31u << 5)) >> 5u) * invVal;
|
clr->g = ((color & (0x1fu << 5)) >> 5u) * invVal;
|
||||||
clr->b = ((color & (0x31u << 10)) >> 10u) * invVal;
|
clr->b = ((color & (0x1fu << 10)) >> 10u) * invVal;
|
||||||
} else {
|
} else {
|
||||||
clr->b = (color & 0x31u) * invVal;
|
clr->b = (color & 0x1fu) * invVal;
|
||||||
clr->g = ((color & (0x31u << 5)) >> 5u) * invVal;
|
clr->g = ((color & (0x1fu << 5)) >> 5u) * invVal;
|
||||||
clr->r = ((color & (0x31u << 10)) >> 10u) * invVal;
|
clr->r = ((color & (0x1fu << 10)) >> 10u) * invVal;
|
||||||
}
|
}
|
||||||
// assign the color to all vertices of the face
|
// assign the color to all vertices of the face
|
||||||
*(clr + 1) = *clr;
|
*(clr + 1) = *clr;
|
||||||
|
|
Loading…
Reference in New Issue