1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-03 10:03:14 +00:00
Pixelorama/src/Tools
Emmanouil Papadeas 91aea32864
Implement 3D layers (#840)
* Implement 3D layers

* Remove unneeded files

* Fix bug where a single hidden layer would ignore all of the layers on top when exporting

* Fix pxo loading

* Remove junk nodes from 3DShapeEdit

Seems like they were created when I copied from the old 3D Options.tscn panel to the new 3D Shape Edit tool.

* Make light gizmos half the size, and hide gizmos when rotating

* Fix crash when using the 3D shape edit tool on a group layer

* Remove unneeded code in Canvas.gd

* Add torus in the Cel3DObject.Type enumerator

Torus isn't currently supported in Godot 3.5, but it is in 3.6 and 4.0, so this is just future-proofing. May break compatibility with .pxo files that were exported with 3D layers before this change.

* Toggle 3D object visibility

* Change texts and some variable names

* Fill translation strings

* Fix crash on group blending, and make the code in Export.blend_layers() more general

* Fix errors when attempting to draw on a 3D cel

Can occur when multiple cels are selected, some of them 3D and some of them pixel

* Make scene properties and objects be per-cel instead of per-layer

Breaks compatibility with previous .pxo files that had 3D layers. Also introduces serialize() and deserialize() methods to BaseCel

* Use if not layer is get_script() in GroupLayer.blend_children()

* Flip the condition in GroupLayer.blend_children()

* Fix bug where locked/invisible layers could get drawn

Regression from c2f6bf0f3f

* Move gizmo code to 3DShapeEdit's draw_start(), move some undo/redo logic to 3DShapeEdit

* Move all of the undo/redo code to 3DShapeEdit, simplify code in Cel3D

* Store Cel3D image data to pxo, for easy usage by external software

This makes importing projects with 3D layers to other software, such as Godot using godot_pixelorama_importer easier.

* Make the linter happy

* Fix bug where the previously selected object would remain selected when it got removed with undo
2023-03-31 21:58:56 +03:00
..
SelectionTools Keep aspect ratio when resizing a selection with gizmos, if the button is pressed next to the ValueSliders 2023-03-21 16:36:25 +02:00
3DShapeEdit.gd Implement 3D layers (#840) 2023-03-31 21:58:56 +03:00
3DShapeEdit.tscn Implement 3D layers (#840) 2023-03-31 21:58:56 +03:00
BaseTool.gd Implement 3D layers (#840) 2023-03-31 21:58:56 +03:00
BaseTool.tscn Add a ValueSliderV2 to the Pencil's spacing options 2023-03-20 20:28:01 +02:00
Bucket.gd [skip ci] Fix various typos 2023-02-02 03:06:23 +02:00
Bucket.tscn Add ValueSliders to Bucket and SelectionTool tool options 2022-10-15 02:03:15 +03:00
ColorPicker.gd Make the color picker pick any visible color on the canvas, regardless of layer (#816) 2023-01-20 16:09:49 +02:00
ColorPicker.tscn Make the color picker pick any visible color on the canvas, regardless of layer (#816) 2023-01-20 16:09:49 +02:00
CropTool.gd Replace the Locked Aspect Ratio mode in the crop tool with a lock button next to the size sliders 2023-03-24 01:17:30 +02:00
CropTool.tscn Replace the Locked Aspect Ratio mode in the crop tool with a lock button next to the size sliders 2023-03-24 01:17:30 +02:00
Draw.gd Fix image brushes being drawn outside the selection 2023-03-14 14:59:22 +02:00
Draw.tscn Use Control + Wheel to change brush size - implements #776 2022-11-10 17:36:09 +02:00
EllipseTool.gd Make circle brushes scale properly, with support for even-numebered diameters 2022-09-09 00:10:34 +03:00
EllipseTool.tscn Add Rectangle and Ellipse tools (#456) 2021-03-30 10:07:13 -07:00
Eraser.gd Implement rectangular grid and guide snapping 2023-01-25 04:37:03 +02:00
Eraser.tscn Replace HSliders+SpinBoxes with ValueSliders in the tool options 2022-10-05 00:42:01 +03:00
LineTool.gd Implement rectangular grid and guide snapping 2023-01-25 04:37:03 +02:00
LineTool.tscn Use Control + Wheel to change shape thickness 2022-11-30 00:29:44 +02:00
Move.gd [skip ci] Fix various typos 2023-02-02 03:06:23 +02:00
Move.tscn Made pixel perfect into a global tool option 2022-02-28 19:24:14 +02:00
Pan.gd Fixes #618 2021-12-15 01:39:24 +02:00
Pan.tscn Made pixel perfect into a global tool option 2022-02-28 19:24:14 +02:00
Pencil.gd Add a ValueSliderV2 to the Pencil's spacing options 2023-03-20 20:28:01 +02:00
Pencil.tscn Add a ValueSliderV2 to the Pencil's spacing options 2023-03-20 20:28:01 +02:00
RectangleTool.gd Support even-numbered rectangle and ellipse sizes in the shape tools 2022-07-04 20:44:23 +03:00
RectangleTool.tscn Add Rectangle and Ellipse tools (#456) 2021-03-30 10:07:13 -07:00
Shading.gd Implement rectangular grid and guide snapping 2023-01-25 04:37:03 +02:00
Shading.tscn Replace HSliders+SpinBoxes with ValueSliders in the tool options 2022-10-05 00:42:01 +03:00
ShapeDrawer.gd Implement rectangular grid and guide snapping 2023-01-25 04:37:03 +02:00
ShapeDrawer.tscn Use Control + Wheel to change shape thickness 2022-11-30 00:29:44 +02:00
ToolButton.tscn Change the background left & right colors of tool buttons in code 2022-07-08 02:54:31 +03:00
Zoom.gd Implement the Keychain Plugin (#700) 2022-05-16 15:07:51 +03:00
Zoom.tscn Replace HSliders+SpinBoxes with ValueSliders in the tool options 2022-10-05 00:42:01 +03:00