We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c304e commit 05e2f04Copy full SHA for 05e2f04
pkg/demoinfocs/sendtables/propdecoder.go
@@ -114,6 +114,24 @@ func (v PropertyValue) R3Vec() r3.Vector {
114
return v.VectorVal
115
}
116
117
+func (v PropertyValue) R3VecOrNil() *r3.Vector {
118
+ if v.S2 {
119
+ if v.Any == nil {
120
+ return nil
121
+ }
122
+
123
+ fs := v.Any.([]float32)
124
125
+ return &r3.Vector{
126
+ X: float64(fs[0]),
127
+ Y: float64(fs[1]),
128
+ Z: float64(fs[2]),
129
130
131
132
+ return &v.VectorVal
133
+}
134
135
func (v PropertyValue) Int() int {
136
if v.S2 {
137
return int(v.Any.(int32))
0 commit comments