Fixing constness

This commit is contained in:
Brandon S 2025-02-17 10:07:15 -05:00
parent baabdffca1
commit 94cc602b61

View File

@ -122,7 +122,9 @@ impl ComputedNode {
///
#[inline]
pub const fn logical_size(&self) -> Vec2 {
self.size() * self.inverse_scale_factor()
let s = self.size();
let scale_fac = self.inverse_scale_factor();
s * scale_fac
}
/// Returns the thickness of the UI node's outline in physical pixels.