Removes editor_hint from SceneTree
This commit is contained in:
parent
fd69604bd9
commit
90b8a5b71e
47 changed files with 135 additions and 114 deletions
|
|
@ -29,6 +29,8 @@
|
|||
/*************************************************************************/
|
||||
#include "texture_progress.h"
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
void TextureProgress::set_under_texture(const Ref<Texture> &p_texture) {
|
||||
|
||||
under = p_texture;
|
||||
|
|
@ -179,7 +181,7 @@ void TextureProgress::_notification(int p_what) {
|
|||
}
|
||||
draw_polygon(points, Vector<Color>(), uvs, progress);
|
||||
}
|
||||
if (get_tree()->is_editor_hint()) {
|
||||
if (Engine::get_singleton()->is_editor_hint()) {
|
||||
Point2 p = progress->get_size();
|
||||
p.x *= get_relative_center().x;
|
||||
p.y *= get_relative_center().y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue