pgraph: Python wrappers for TransformState getters no longer return reference to temporary
Fixes #1625
This commit is contained in:
parent
0ce7215ee9
commit
bfe1c95d29
|
|
@ -132,6 +132,17 @@ PUBLISHED:
|
|||
INLINE bool has_nonzero_shear() const;
|
||||
INLINE bool has_mat() const;
|
||||
|
||||
#ifdef CPPPARSER
|
||||
// Force interrogate to make a copy as a temporary solution for #1625.
|
||||
LPoint3 get_pos() const;
|
||||
LVecBase3 get_hpr() const;
|
||||
LQuaternion get_quat() const;
|
||||
LQuaternion get_norm_quat() const;
|
||||
LVecBase3 get_scale() const;
|
||||
PN_stdfloat get_uniform_scale() const;
|
||||
LVecBase3 get_shear() const;
|
||||
LMatrix4 get_mat() const;
|
||||
#else
|
||||
INLINE const LPoint3 &get_pos() const;
|
||||
INLINE const LVecBase3 &get_hpr() const;
|
||||
INLINE const LQuaternion &get_quat() const;
|
||||
|
|
@ -140,6 +151,7 @@ PUBLISHED:
|
|||
INLINE PN_stdfloat get_uniform_scale() const;
|
||||
INLINE const LVecBase3 &get_shear() const;
|
||||
INLINE const LMatrix4 &get_mat() const;
|
||||
#endif
|
||||
|
||||
INLINE LVecBase2 get_pos2d() const;
|
||||
INLINE PN_stdfloat get_rotate2d() const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue