mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
properly cast new operator * return values
This commit is contained in:
parent
c75b55eb98
commit
b8b1e3d87e
@ -99,7 +99,7 @@ FLOATNAME(LRotation)(FLOATTYPE h, FLOATTYPE p, FLOATTYPE r) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE_LINMATH FLOATNAME(LRotation) FLOATNAME(LRotation)::
|
||||
operator * (FLOATTYPE scalar) const {
|
||||
return FLOATNAME(LVecBase4)::operator * (scalar);
|
||||
return FLOATNAME(LRotation)(FLOATNAME(LVecBase4)::operator * (scalar));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -109,7 +109,7 @@ operator * (FLOATTYPE scalar) const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE_LINMATH FLOATNAME(LRotation) FLOATNAME(LRotation)::
|
||||
operator / (FLOATTYPE scalar) const {
|
||||
return FLOATNAME(LVecBase4)::operator / (scalar);
|
||||
return FLOATNAME(LRotation)(FLOATNAME(LVecBase4)::operator / (scalar));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user