Fix 2d view zoom label
This commit is contained in:
@@ -382,8 +382,10 @@ function ui_view2d_render() {
|
|||||||
ui._x += ew * 0.5 + 3;
|
ui._x += ew * 0.5 + 3;
|
||||||
ui._y = 2 + start_y;
|
ui._y = 2 + start_y;
|
||||||
|
|
||||||
let scale_percent: i32 = math_round((tw / tex.width) * 100);
|
if (tex != null) {
|
||||||
ui_text(scale_percent + "%");
|
let scale_percent: i32 = math_round((tw / tex.width) * 100);
|
||||||
|
ui_text(scale_percent + "%");
|
||||||
|
}
|
||||||
|
|
||||||
ui.enabled = true;
|
ui.enabled = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user