Removes editor_hint from SceneTree
This commit is contained in:
parent
fd69604bd9
commit
90b8a5b71e
47 changed files with 135 additions and 114 deletions
|
|
@ -29,13 +29,15 @@
|
|||
/*************************************************************************/
|
||||
#include "reference_rect.h"
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
void ReferenceRect::_notification(int p_what) {
|
||||
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
|
||||
if (!is_inside_tree())
|
||||
return;
|
||||
if (get_tree()->is_editor_hint())
|
||||
if (Engine::get_singleton()->is_editor_hint())
|
||||
draw_style_box(get_stylebox("border"), Rect2(Point2(), get_size()));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue