Commit graph

378 commits

Author SHA1 Message Date
Leonardo Zide
abcef7a536 Show train track insert gizmo on all open connections of the focused piece.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-12-20 17:18:33 -08:00
Leonardo Zide
b9dc71d60e Replaced train track gizmo with a popup list.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-12-18 16:41:03 -08:00
Leonardo Zide
4f2782b407 Added rotate train track gizmo.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-12-17 19:20:38 -08:00
Leonardo Zide
ff23653709 Added track rotation and focus shortcuts.
Some checks are pending
LeoCAD CI / build-ubuntu (push) Waiting to run
LeoCAD CI / build-macos (push) Waiting to run
2024-12-07 20:02:47 -08:00
Leonardo Zide
642e0965ae Fixed train track insert while in submodel editing.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-11-30 12:47:40 -08:00
Leonardo Zide
fd61c1c9f9 Added gizmo to rotate train tracks. 2024-11-30 12:29:15 -08:00
Leonardo Zide
a08ad3f81b Detect train track connections and pick an open one when inserting. 2024-11-27 13:04:53 -08:00
Leonardo Zide
f80b5c95e1 Code cleanup. 2024-11-26 15:53:50 -08:00
Leonardo Zide
14e5e7d126 Connect train tracks when inserting with the keyboard. 2024-11-23 18:03:54 -08:00
Leonardo Zide
72c8e7a6c2 Update parts in use category after changes. Fixes #890.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-11-14 17:28:51 -08:00
Leonardo Zide
a4f63fc54b Zoom Extents now takes into account the current submodel transform. Fixes #953. 2024-11-14 11:30:38 -08:00
Leonardo Zide
ed29dad76a Added train track gizmo.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-11-02 19:34:22 -07:00
Leonardo Zide
0ded25b7ea Fix setting float properties without a focus object. 2024-10-03 14:23:34 -07:00
Leonardo Zide
b2074a7c0a Use the part selection widget in the properties widget.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-07-25 14:16:23 -07:00
Leonardo Zide
39cb7e13d1 Use unique_ptr for pieces. 2024-06-19 19:22:18 -07:00
Leonardo Zide
b070b0af29 Use unique_ptr for models.
Some checks failed
LeoCAD CI / build-ubuntu (push) Has been cancelled
LeoCAD CI / build-macos (push) Has been cancelled
2024-06-16 17:43:02 -07:00
Leonardo Zide
6a9c2d6a87 Use unique_ptr for cameras. 2024-06-04 09:34:38 -07:00
Leonardo Zide
27f5dcfde7 Use unique_ptr for lights. 2024-06-04 09:08:54 -07:00
Leonardo Zide
18224e8095 Better piece insert position when using the keyboard. 2024-05-27 11:55:38 -07:00
Leonardo Zide
cb6a836178 Use unique_ptr to control group ownership. 2024-05-27 11:43:36 -07:00
Leonardo Zide
80d144fea8 Array cleanup. 2024-05-26 13:01:34 -07:00
Leonardo Zide
d2cd372428 Removed more lcArray instances. 2024-05-14 20:45:09 -07:00
Leonardo Zide
aae75b36fe Removed lcArray from control points. 2024-05-12 12:45:15 -07:00
Leonardo Zide
51be79a62c Code style updates. 2024-05-11 11:37:51 -07:00
Leonardo Zide
63272bcc78
Merge pull request #896 from gerw/master
Undo/redo preserve selected step
2024-05-11 11:36:40 -07:00
Leonardo Zide
14d1217850 Replaced property specific functions with the generic function. 2024-04-14 11:08:30 -07:00
Leonardo Zide
3528817d22 Split light size into different variables per type. 2024-04-07 12:48:41 -07:00
Leonardo Zide
5d5274b2b4 Split light power into different properties for Blender and POV-Ray. 2024-04-07 11:28:54 -07:00
Leonardo Zide
69ae4ea492 Added POV-Ray prefix to spot tightness and area grid 2024-04-06 18:50:37 -07:00
Leonardo Zide
66f4e42e2d Renamed attenuation to POV-Ray Fade for clarity 2024-04-06 17:29:15 -07:00
Leonardo Zide
34941219f5 Added support for multi edit piece id and color. 2024-03-02 17:37:46 -08:00
Leonardo Zide
45ab8e8d60 Update camera menu before showing. 2024-02-19 17:51:34 -08:00
Leonardo Zide
732dac4c65 Support editing string properties. 2024-02-19 17:38:04 -08:00
Leonardo Zide
dd989bbc1d Added support for multi edit of ints and lists. 2024-02-19 16:31:02 -08:00
Leonardo Zide
39bdb1aa0a Added multi state support to colors. 2024-02-19 14:54:45 -08:00
Leonardo Zide
db24fab6d7 Support changing multiple bool properties at the same time. 2024-02-19 12:32:19 -08:00
Leonardo Zide
a42d86394c Support toggling key frames. 2024-01-21 12:53:18 -08:00
Gerd Wachsmuth
81262d2f88 Undo/redo try to preserve cameras
Addresses leozide/leocad#534

It does not work if
* the name of a camera is changed
* a camera does not exist after undo/redo
* multiple cameras have the same name

In order to address these remaining issues, one could add a unique ID
to all cameras in the model.
2024-01-15 21:16:05 +01:00
Gerd Wachsmuth
b520fe0b6d Undo/redo preserve selected step
Fixes leozide/leocad#788
2024-01-15 21:16:05 +01:00
Leonardo Zide
aa580966cd Fixed find replacing piece info in some cases. 2024-01-14 19:11:57 -08:00
Gerd Wachsmuth
c55c544af9 Improve search/replace feature
The replace feature was quite bugged:

- in the replace widget, there was no difference between the buttons
  'Find next' and 'Replace next' and between 'Find all' and 'Replace all'
- 'Replace all' did not work
- the logic for replacing colors was bugged
2024-01-14 10:06:57 +01:00
Gerd Wachsmuth
eae65819f2 Fix freeze for find/replace
The loop was not terminated properly if pieces were invisible.

Fixes leozide/leocad#901
2024-01-13 13:34:55 +01:00
Leonardo Zide
105b00e24e Fixed warnings. 2023-12-28 11:55:11 -08:00
Leonardo Zide
0da3def563
Merge pull request #874 from trevorsandy/BLENDER_AND_POVRAY_LIGHTS
Blender and POVRay Lights
2023-12-23 11:36:38 -08:00
Leonardo Zide
30ffbd5e05 Fixed part highlight drawing in parts list. Fixes #876. 2023-12-21 14:08:27 -08:00
Leonardo Zide
6774b17051 Merged POV-Ray and Blender light power. 2023-12-20 16:42:00 -08:00
Leonardo Zide
d52159087c Added light attenuation settings. 2023-12-17 11:37:11 -08:00
Leonardo Zide
0e74aea5fa Fixed POV-Ray area light grid. 2023-11-19 18:05:43 -08:00
Leonardo Zide
5430dd6170 Added light power attribute. 2023-10-01 13:16:26 -07:00
Leonardo Zide
a27694a594 Support dragging light targets to rotate. 2023-09-23 18:38:03 -07:00