Commit graph

364 commits

Author SHA1 Message Date
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
Leonardo Zide
177c1b82d7 Support Blender light sizes for all types of lights. 2023-09-17 11:45:14 -07:00
Leonardo Zide
59c1930b83 Added support for area size key frames. 2023-09-17 10:40:23 -07:00
Leonardo Zide
e061eca2e8 Reorganized spot light parameters. 2023-09-09 18:25:34 -07:00
Leonardo Zide
6a1df617e8 Use a matrix to store the light transform. 2023-09-04 20:53:34 -07:00
Leonardo Zide
86327196c2 Support rotating lights. 2023-09-04 10:59:16 -07:00
Leonardo Zide
080a418e1b Renamed shadowless to cast shadow. 2023-09-02 10:40:52 -07:00
Leonardo Zide
7d289f2cfe Made light type editable. 2023-09-01 20:46:29 -07:00
Leonardo Zide
9d60160f6a Consolidated light color properties. 2023-08-27 11:17:07 -07:00
Trevor SANDY
8cfadc804d Made light type/shape immutable. 2023-08-13 15:50:00 +02:00
Trevor SANDY
d29c5b9323 POVRay lights - POV file preferences 2023-08-11 05:39:36 +02:00
Trevor SANDY
415354bfe8 Blender lights - merge spot light and directional lights 2023-08-11 05:39:36 +02:00
Trevor SANDY
3b9ea3ae79 Blender lights - view and control 2023-08-11 05:39:36 +02:00
Leonardo Zide
eade4bcb5f Removed default parameters. 2023-06-18 18:37:59 -07:00
Trevor SANDY
4d2ecee58d Blender addon - render current step 2023-06-11 17:43:25 +02:00