mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
tform: fix MouseWatcher ABI incompatibility with NDEBUG builds
This commit is contained in:
parent
cefc92a775
commit
b05ae1f762
@ -742,7 +742,6 @@ clear_current_regions() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
/**
|
||||
* The protected implementation of show_regions(). This assumes the lock is
|
||||
* already held.
|
||||
@ -750,6 +749,7 @@ clear_current_regions() {
|
||||
void MouseWatcher::
|
||||
do_show_regions(const NodePath &render2d, const string &bin_name,
|
||||
int draw_order) {
|
||||
#ifndef NDEBUG
|
||||
MouseWatcherBase::do_show_regions(render2d, bin_name, draw_order);
|
||||
_show_regions_render2d = render2d;
|
||||
_show_regions_bin_name = bin_name;
|
||||
@ -758,16 +758,16 @@ do_show_regions(const NodePath &render2d, const string &bin_name,
|
||||
for (MouseWatcherGroup *group : _groups) {
|
||||
group->show_regions(render2d, bin_name, draw_order);
|
||||
}
|
||||
}
|
||||
#endif // NDEBUG
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
/**
|
||||
* The protected implementation of hide_regions(). This assumes the lock is
|
||||
* already held.
|
||||
*/
|
||||
void MouseWatcher::
|
||||
do_hide_regions() {
|
||||
#ifndef NDEBUG
|
||||
MouseWatcherBase::do_hide_regions();
|
||||
_show_regions_render2d = NodePath();
|
||||
_show_regions_bin_name = string();
|
||||
@ -776,8 +776,8 @@ do_hide_regions() {
|
||||
for (MouseWatcherGroup *group : _groups) {
|
||||
group->hide_regions();
|
||||
}
|
||||
}
|
||||
#endif // NDEBUG
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the list of regions that are in both regions_a and regions_b, as
|
||||
|
@ -157,11 +157,9 @@ protected:
|
||||
void set_current_regions(Regions ®ions);
|
||||
void clear_current_regions();
|
||||
|
||||
#ifndef NDEBUG
|
||||
virtual void do_show_regions(const NodePath &render2d,
|
||||
const std::string &bin_name, int draw_order);
|
||||
virtual void do_hide_regions();
|
||||
#endif // NDEBUG
|
||||
|
||||
static void intersect_regions(Regions &only_a,
|
||||
Regions &only_b,
|
||||
@ -260,11 +258,9 @@ private:
|
||||
};
|
||||
InactivityState _inactivity_state;
|
||||
|
||||
#ifndef NDEBUG
|
||||
NodePath _show_regions_render2d;
|
||||
std::string _show_regions_bin_name;
|
||||
int _show_regions_draw_order;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// Inherited from DataNode
|
||||
|
Loading…
x
Reference in New Issue
Block a user