diff --git a/Scripts/Canvas.gd b/Scripts/Canvas.gd index 180d9e8dd..28a850eee 100644 --- a/Scripts/Canvas.gd +++ b/Scripts/Canvas.gd @@ -6,7 +6,7 @@ var current_layer_index := 0 var location := Vector2.ZERO var size := Vector2(64, 64) var fill_color := Color(0, 0, 0, 0) -var frame := 0 setget frame_changed +var frame := 0 var current_pixel := Vector2.ZERO # pretty much same as mouse_pos, but can be accessed externally var previous_mouse_pos := Vector2.ZERO var previous_mouse_pos_for_lines := Vector2.ZERO @@ -496,11 +496,6 @@ func update_texture(layer_index : int) -> void: frame_texture_rect = Global.find_node_by_name(Global.layers[layer_index][2].get_child(frame),"FrameTexture") frame_texture_rect.texture = layers[layer_index][1] -func frame_changed(value : int) -> void: - frame = value -# if frame_button: -# frame_button.get_node("FrameButton").frame = frame -# frame_button.get_node("FrameID").text = str(frame + 1) func get_layer_container(layer_index : int) -> LayerContainer: for container in Global.vbox_layer_container.get_children(): diff --git a/Scripts/LayerContainer.gd b/Scripts/LayerContainer.gd index 9d9bef92a..d03e24af5 100644 --- a/Scripts/LayerContainer.gd +++ b/Scripts/LayerContainer.gd @@ -2,8 +2,6 @@ class_name LayerContainer extends Button var i := 0 -# warning-ignore:unused_class_variable -var currently_selected := false var visibility_button : BaseButton var label : Label var line_edit : LineEdit