mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 22:51:08 +00:00
Construct values only when necessary.
This commit is contained in:
parent
2ec1152b0f
commit
cc51b045da
27 changed files with 59 additions and 60 deletions
|
|
@ -182,7 +182,7 @@ void RendererCanvasCull::_attach_canvas_item_for_draw(RendererCanvasCull::Item *
|
|||
|
||||
if (ci->commands != nullptr) {
|
||||
ci->final_transform = xform;
|
||||
ci->final_modulate = Color(modulate.r * ci->self_modulate.r, modulate.g * ci->self_modulate.g, modulate.b * ci->self_modulate.b, modulate.a * ci->self_modulate.a);
|
||||
ci->final_modulate = modulate * ci->self_modulate;
|
||||
ci->global_rect_cache = global_rect;
|
||||
ci->global_rect_cache.position -= p_clip_rect.position;
|
||||
ci->light_masked = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue