Merge pull request #111195 from lawnjelly/fti_fix_2d_non_interpolated
[3.x] FTI - Optimize non-interpolated 2D items
This commit is contained in:
@ -1218,7 +1218,6 @@ public:
|
||||
memdelete(skinning_data);
|
||||
skinning_data = nullptr;
|
||||
}
|
||||
on_interpolate_transform_list = false;
|
||||
}
|
||||
Item() {
|
||||
light_mask = 1;
|
||||
|
||||
@ -381,7 +381,7 @@ void VisualServerCanvas::_render_canvas_item_cull_by_item(Item *p_canvas_item, c
|
||||
Rect2 rect = ci->get_rect();
|
||||
|
||||
Transform2D final_xform;
|
||||
if (!_interpolation_data.interpolation_enabled || !ci->interpolated) {
|
||||
if (!_interpolation_data.interpolation_enabled || !ci->interpolated || !ci->on_interpolate_transform_list) {
|
||||
final_xform = ci->xform_curr;
|
||||
} else {
|
||||
real_t f = Engine::get_singleton()->get_physics_interpolation_fraction();
|
||||
@ -528,7 +528,7 @@ void VisualServerCanvas::_render_canvas_item_cull_by_node(Item *p_canvas_item, c
|
||||
Rect2 rect = ci->get_rect();
|
||||
|
||||
Transform2D final_xform;
|
||||
if (!_interpolation_data.interpolation_enabled || !ci->interpolated) {
|
||||
if (!_interpolation_data.interpolation_enabled || !ci->interpolated || !ci->on_interpolate_transform_list) {
|
||||
final_xform = ci->xform_curr;
|
||||
} else {
|
||||
real_t f = Engine::get_singleton()->get_physics_interpolation_fraction();
|
||||
|
||||
Reference in New Issue
Block a user