File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 30
30
31
31
#include " visible_on_screen_notifier_2d.h"
32
32
33
- #ifdef DEBUG_ENABLED
33
+ #ifdef TOOLS_ENABLED
34
34
Dictionary VisibleOnScreenNotifier2D::_edit_get_state () const {
35
35
Dictionary state = Node2D::_edit_get_state ();
36
36
state[" rect" ] = rect;
@@ -46,7 +46,9 @@ void VisibleOnScreenNotifier2D::_edit_set_state(const Dictionary &p_state) {
46
46
void VisibleOnScreenNotifier2D::_edit_set_rect (const Rect2 &p_edit_rect) {
47
47
set_rect (p_edit_rect);
48
48
}
49
+ #endif // TOOLS_ENABLED
49
50
51
+ #ifdef DEBUG_ENABLED
50
52
Rect2 VisibleOnScreenNotifier2D::_edit_get_rect () const {
51
53
return rect;
52
54
}
Original file line number Diff line number Diff line change @@ -54,13 +54,16 @@ class VisibleOnScreenNotifier2D : public Node2D {
54
54
static void _bind_methods ();
55
55
56
56
public:
57
- #ifdef DEBUG_ENABLED
57
+ #ifdef TOOLS_ENABLED
58
58
virtual Dictionary _edit_get_state () const override ;
59
59
virtual void _edit_set_state (const Dictionary &p_state) override ;
60
60
61
61
virtual Vector2 _edit_get_minimum_size () const override { return Vector2 (); }
62
62
63
63
virtual void _edit_set_rect (const Rect2 &p_edit_rect) override ;
64
+ #endif // TOOLS_ENABLED
65
+
66
+ #ifdef DEBUG_ENABLED
64
67
virtual Rect2 _edit_get_rect () const override ;
65
68
66
69
virtual bool _edit_use_rect () const override ;
You can’t perform that action at this time.
0 commit comments