Removes editor_hint from SceneTree

This commit is contained in:
Ignacio Etcheverry 2017-08-19 01:02:56 +02:00
parent fd69604bd9
commit 90b8a5b71e
47 changed files with 135 additions and 114 deletions

View file

@ -28,6 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#include "path_2d.h"
#include "engine.h"
#include "scene/scene_string_names.h"
void Path2D::_notification(int p_what) {
@ -35,7 +37,7 @@ void Path2D::_notification(int p_what) {
if (p_what == NOTIFICATION_DRAW && curve.is_valid()) {
//draw the curve!!
if (!get_tree()->is_editor_hint() && !get_tree()->is_debugging_navigation_hint()) {
if (!Engine::get_singleton()->is_editor_hint() && !get_tree()->is_debugging_navigation_hint()) {
return;
}
@ -56,7 +58,7 @@ void Path2D::_notification(int p_what) {
void Path2D::_curve_changed() {
if (is_inside_tree() && get_tree()->is_editor_hint())
if (is_inside_tree() && Engine::get_singleton()->is_editor_hint())
update();
}