mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Physics interpolation - Move out of Scenario
Move VisualServer interpolation data out of Scenario and into VisualServerScene, so the interpolation data and enabled status is now common to all Scenarios. Fix physics interpolation in multithreaded mode by ensuring tick and pre-draw are called.
This commit is contained in:
@@ -115,10 +115,6 @@ void Camera::_notification(int p_what) {
|
||||
if (current || first_camera) {
|
||||
viewport->_camera_set(this);
|
||||
}
|
||||
|
||||
ERR_FAIL_COND(get_world().is_null());
|
||||
VisualServer::get_singleton()->camera_set_scenario(camera, get_world()->get_scenario());
|
||||
|
||||
} break;
|
||||
case NOTIFICATION_TRANSFORM_CHANGED: {
|
||||
_request_camera_update();
|
||||
@@ -132,8 +128,6 @@ void Camera::_notification(int p_what) {
|
||||
}
|
||||
} break;
|
||||
case NOTIFICATION_EXIT_WORLD: {
|
||||
VisualServer::get_singleton()->camera_set_scenario(camera, RID());
|
||||
|
||||
if (!get_tree()->is_node_being_edited(this)) {
|
||||
if (is_current()) {
|
||||
clear_current();
|
||||
|
||||
Reference in New Issue
Block a user