You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Single Compilation Unit build.
Adds support for simple SCU build (DEV_ENABLED only). This speeds up compilation by compiling multiple cpp files within a single translation unit.
This commit is contained in:
@@ -30,14 +30,12 @@
|
||||
|
||||
#include "editor_scale.h"
|
||||
|
||||
#include "core/os/os.h"
|
||||
float EditorScale::_scale = 1.0f;
|
||||
|
||||
static float scale = 1.0;
|
||||
|
||||
void editor_set_scale(float p_scale) {
|
||||
scale = p_scale;
|
||||
void EditorScale::set_scale(float p_scale) {
|
||||
_scale = p_scale;
|
||||
}
|
||||
|
||||
float editor_get_scale() {
|
||||
return scale;
|
||||
float EditorScale::get_scale() {
|
||||
return _scale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user