mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
physics: also add set_name/get_name if NDEBUG is set, for ABI compat
This commit is contained in:
parent
1eeea718c5
commit
5b938278c2
@ -87,14 +87,14 @@ PUBLISHED:
|
|||||||
virtual LMatrix4 get_lcs() const;
|
virtual LMatrix4 get_lcs() const;
|
||||||
virtual PhysicsObject *make_copy() const;
|
virtual PhysicsObject *make_copy() const;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#if !defined(NDEBUG) || !defined(CPPPARSER)
|
||||||
void set_name(const std::string &name) {
|
void set_name(const std::string &name) {
|
||||||
_name = name;
|
_name = name;
|
||||||
}
|
}
|
||||||
const std::string& get_name() {
|
const std::string &get_name() {
|
||||||
return _name;
|
return _name;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual void output(std::ostream &out) const;
|
virtual void output(std::ostream &out) const;
|
||||||
virtual void write(std::ostream &out, int indent=0) const;
|
virtual void write(std::ostream &out, int indent=0) const;
|
||||||
@ -115,9 +115,7 @@ private:
|
|||||||
bool _process_me;
|
bool _process_me;
|
||||||
bool _oriented;
|
bool _oriented;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
std::string _name;
|
||||||
std::string _name;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static TypeHandle get_class_type() {
|
static TypeHandle get_class_type() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user