SceneMainLoop -> SceneTree
-=-=-=-=-=-=-=-=-=-=-=-=-=- *YOUR SOURCE MIGHT NOT WORK* For mor information on fix: https://github.com/okamstudio/godot/wiki/devel_scene_tree Other stuff: -Shower of bullets demo -Fixes all around
This commit is contained in:
parent
d14baf6e41
commit
0dbedd18fc
168 changed files with 1534 additions and 1310 deletions
|
|
@ -32,9 +32,9 @@
|
|||
void InterpolatedCamera::_notification(int p_what) {
|
||||
|
||||
switch(p_what) {
|
||||
case NOTIFICATION_ENTER_SCENE: {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
|
||||
if (get_scene()->is_editor_hint() && enabled)
|
||||
if (get_tree()->is_editor_hint() && enabled)
|
||||
set_fixed_process(false);
|
||||
|
||||
} break;
|
||||
|
|
@ -109,7 +109,7 @@ void InterpolatedCamera::set_interpolation_enabled(bool p_enable) {
|
|||
return;
|
||||
enabled=p_enable;
|
||||
if (p_enable) {
|
||||
if (is_inside_scene() && get_scene()->is_editor_hint())
|
||||
if (is_inside_tree() && get_tree()->is_editor_hint())
|
||||
return;
|
||||
set_process(true);
|
||||
} else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue