mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 15:39:49 +00:00
Draw tiles on all selected draw cels
Not working properly yet
This commit is contained in:
parent
815388f2fa
commit
d2cfe72c16
|
@ -321,12 +321,12 @@ func draw_end(pos: Vector2i) -> void:
|
||||||
|
|
||||||
|
|
||||||
func draw_tile(pos: Vector2i, tile_index: int) -> void:
|
func draw_tile(pos: Vector2i, tile_index: int) -> void:
|
||||||
if Global.current_project.get_current_cel() is not CelTileMap:
|
for cel in _get_selected_draw_cels():
|
||||||
return
|
if cel is not CelTileMap:
|
||||||
pos = Global.current_project.tiles.get_canon_position(pos)
|
return
|
||||||
var tile_position := get_cell_position(pos)
|
pos = Global.current_project.tiles.get_canon_position(pos)
|
||||||
var cel := Global.current_project.get_current_cel() as CelTileMap
|
var tile_position := get_cell_position(pos)
|
||||||
cel.set_index(tile_position, tile_index)
|
(cel as CelTileMap).set_index(tile_position, tile_index)
|
||||||
|
|
||||||
|
|
||||||
func _prepare_tool() -> void:
|
func _prepare_tool() -> void:
|
||||||
|
|
Loading…
Reference in a new issue