You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
300 B
GDScript

2 years ago
const Model = preload("./Model.gd");
var models = {0: Model.new()};
var current_index = -1;
var colors: Array;
var nodes = {};
var materials = {};
var layers = {};
func get_model():
if (!models.has(current_index)):
models[current_index] = Model.new();
return models[current_index];