mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Initialize class variables with default values in scene/ [2/2]
This commit is contained in:
parent
df9c98e107
commit
7961a1dea3
171 changed files with 1007 additions and 1889 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue