Skip to content

Commit f7ab401

Browse files
committed
Quality
1 parent 1e0158f commit f7ab401

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gsplat/data-common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func IsSog2Spz() bool {
4141
return !Args.HasCmd("join") && Args.HasCmd("g2z", "sog2spz")
4242
}
4343

44-
func IsSog2SpxOrSog() bool {
45-
return IsSog2Spx() || IsSog2Sog()
44+
func IsSog2SpxOrSogSpz() bool {
45+
return IsSog2Spx() || IsSog2Sog() || IsSog2Spz()
4646
}
4747

4848
func IsSpx2SpxOrSog() bool {

gsplat/read-gs-sog-v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func ReadSogV1(meta *SogMeta, dir string) ([]*SplatData, *SogHeader) {
137137
header.ShDegree = shDegree
138138

139139
// 争取利用原有调色板
140-
if meta.ShN != nil && IsSog2SpxOrSog() && !IsShChanged() {
140+
if meta.ShN != nil && IsSog2SpxOrSogSpz() && !IsShChanged() {
141141
palettes := make([]uint8, len(centroids))
142142
pixCnt := len(centroids) / 4
143143
for i := range pixCnt {

gsplat/read-gs-sog-v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func ReadSogV2(meta *SogMeta, dir string) ([]*SplatData, *SogHeader) {
121121
header.ShDegree = shDegree
122122

123123
// 争取利用原有调色板
124-
if meta.ShN != nil && IsSog2SpxOrSog() && !IsShChanged() {
124+
if meta.ShN != nil && IsSog2SpxOrSogSpz() && !IsShChanged() {
125125
palettes := make([]uint8, len(centroids))
126126
pixCnt := len(centroids) / 4
127127
for i := range pixCnt {

0 commit comments

Comments
 (0)