You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Initialize class variables with default values in scene/ [2/2]
This commit is contained in:
@@ -303,17 +303,7 @@ void CanvasLayer::_bind_methods() {
|
||||
}
|
||||
|
||||
CanvasLayer::CanvasLayer() {
|
||||
vp = nullptr;
|
||||
scale = Vector2(1, 1);
|
||||
rot = 0;
|
||||
locrotscale_dirty = false;
|
||||
layer = 1;
|
||||
canvas = RS::get_singleton()->canvas_create();
|
||||
custom_viewport = nullptr;
|
||||
|
||||
sort_index = 0;
|
||||
follow_viewport = false;
|
||||
follow_viewport_scale = 1.0;
|
||||
}
|
||||
|
||||
CanvasLayer::~CanvasLayer() {
|
||||
|
||||
Reference in New Issue
Block a user