mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-13 06:45:17 +00:00
The Canvas is now single node, instead of having multiple canvases for each frame. This should also be a performance optimization, since there are less canvas nodes, so there are less _input() calls. It should also fix a rare Undo/Redo issue with motion drawing and making lines. Could be unstable, needs more testing. As a side effect, the guides are now the same for all frames, so this should also close #246.
9 lines
204 B
GDScript
9 lines
204 B
GDScript
class_name Frame extends Reference
|
|
# A class for frame properties.
|
|
# A frame is a collection of cels, for each layer.
|
|
|
|
|
|
var cels : Array # An array of Cels
|
|
|
|
func _init(_cels := []) -> void:
|
|
cels = _cels
|