You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits.
This commit is contained in:
@@ -200,7 +200,7 @@ void CanvasLayer::set_custom_viewport(Node *p_viewport) {
|
||||
if (custom_viewport) {
|
||||
custom_viewport_id = custom_viewport->get_instance_id();
|
||||
} else {
|
||||
custom_viewport_id = 0;
|
||||
custom_viewport_id = ObjectID();
|
||||
}
|
||||
|
||||
if (is_inside_tree()) {
|
||||
@@ -327,7 +327,7 @@ CanvasLayer::CanvasLayer() {
|
||||
layer = 1;
|
||||
canvas = VS::get_singleton()->canvas_create();
|
||||
custom_viewport = NULL;
|
||||
custom_viewport_id = 0;
|
||||
|
||||
sort_index = 0;
|
||||
follow_viewport = false;
|
||||
follow_viewport_scale = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user