Commit graph

1094 commits

Author SHA1 Message Date
Leonardo Zide
ed5259229e Fixed mesh cache not loading parts. 2019-09-23 16:56:47 -07:00
Leonardo Zide
66bbb8d9de Simpler stud reload. 2019-09-23 16:55:24 -07:00
Trevor SANDY
f91da8a7ce Change stud logo without application restart (#389)
* Change stud logo without application restart

* Refactor change stud logo without application restart
2019-09-23 16:22:11 -07:00
Trevor SANDY
5adcfb4027 Add stud logo preference and command line option (#387)
* Add stud logo preference and command line option

* Support add stud logo when using disk library
2019-09-21 09:47:33 -07:00
Leonardo Zide
23eb88df4f Added minifig template import/export. 2019-09-14 17:05:13 -07:00
Gerd Wachsmuth
516ddcbf7e Fix two issues with pivot points (#382)
- ResetPivotPoint() now truely resets the pivot point (and not only
invalidating it).
- The copy constructor of lcPiece now also copies the state of the pivot
point. Thus, duplicating pieces also duplicates the pivot points.
2019-08-20 14:52:29 -07:00
Leonardo Zide
1fef25a740 Added distance parameter to SetAngles. 2019-08-15 17:41:32 -07:00
Leonardo Zide
7c81198e7d Added Camera::GetAngles for LPub. 2019-08-15 17:33:37 -07:00
Leonardo Zide
ab94e51cf3 Keep the current camera settings when switching to a preset viewpoint. 2019-08-11 11:38:46 -07:00
Leonardo Zide
3b80bbabee Fixed projection menu not updating after switching cameras. 2019-08-10 19:26:19 -07:00
Leonardo Zide
44bdb22a5b Try to add lights and cameras near the center of the model. 2019-08-10 12:31:28 -07:00
Leonardo Zide
e523398c70 Added option to hide part aliases. Fixes #378. 2019-08-04 11:00:41 -07:00
Leonardo Zide
1e2f6c208f Moved mesh loading code to a separate file. 2019-07-27 16:31:16 -07:00
Leonardo Zide
560b5f3351 Fixed Qt4. 2019-07-21 10:30:45 -07:00
Leonardo Zide
a9ff4d265b Replaced PieceInfo flags with enum. 2019-07-21 09:26:36 -07:00
Leonardo Zide
e68ce05b57 Moved mesh flags to the mesh class. 2019-07-21 08:56:37 -07:00
Leonardo Zide
6c7291b919 Updated version. 2019-07-14 18:22:57 -07:00
Leonardo Zide
bcffeb3727 Removed horizontal lines from dialogs. 2019-07-14 18:17:58 -07:00
Leonardo Zide
4293829386 Fixed modified dialog showing after a file is saved. 2019-07-14 18:03:17 -07:00
Leonardo Zide
1457dde9e5 Updated version number. 2019-07-14 10:07:54 -07:00
Leonardo Zide
d1a80399c8 Check if camera values are nan when loading tab layouts. 2019-07-13 08:58:31 -07:00
Leonardo Zide
d5bcf46da1 Fixed warnings. 2019-07-09 08:47:15 -07:00
Leonardo Zide
cd3a03e1de Fixed warnings. 2019-07-08 18:34:34 -07:00
Leonardo Zide
4493c3f6f2 Array cleanup. 2019-07-04 17:06:26 -07:00
Leonardo Zide
3d9395e175 Avoid adding the project file to the file watcher multiple times. 2019-07-04 15:35:52 -07:00
Leonardo Zide
d0f1b2e49e Qt4 fix. 2019-07-01 14:58:10 -07:00
Leonardo Zide
1bfa710706 Only close tab if the user clicked and released the mouse on the same tab. 2019-07-01 14:38:10 -07:00
Thomas Cujé
0bae463b71 Close tab with middle mouse click (#363) 2019-07-01 14:11:47 -07:00
Leonardo Zide
b42e3b7e31 Array cleanup. 2019-06-23 18:28:14 -07:00
Leonardo Zide
6681986517 Delete popup menus after they are shown. 2019-06-23 13:15:12 -07:00
Leonardo Zide
4c0a696661 Fixed LDD import not converting transforms correctly. Fixes #355. 2019-06-23 12:52:53 -07:00
Johannes Sixt
19e1493251 Fix spring of synthesized shock absorbers (stiff, extra stiff, soft versions) (#360) 2019-06-23 10:48:25 -07:00
Leonardo Zide
5a3abf18e0 Allow custom color and minifig settings files. Fixes #359. 2019-06-20 18:52:33 -07:00
Leonardo Zide
6b26b2597e Added bricklink rubber colors. 2019-06-18 16:02:35 -07:00
Leonardo Zide
50daa6a3b6 Use Peeron color table for BrickLink colors. 2019-06-05 15:24:53 -07:00
Leonardo Zide
1ae3cfa8b0 Always list part quantity in BrickLink export. 2019-06-05 14:37:00 -07:00
Leonardo Zide
617a667521 Array cleanup. 2019-06-04 18:45:22 -07:00
Leonardo Zide
a464606507 Fixed compiler warnings. 2019-06-03 13:23:04 -07:00
Leonardo Zide
7001cdf11d Fixed crash loading textured parts. 2019-06-02 09:39:12 -07:00
Leonardo Zide
b8c2074c93 Fixed primitives under p/8/ not being found by loose file libraries. 2019-06-01 19:54:09 -07:00
Leonardo Zide
f74b7bc801 Prompt to save ldr files with multiple models as mpd. Fixes #311. 2019-06-01 11:11:36 -07:00
Leonardo Zide
9809cbc919 Fix for Qt4. 2019-05-30 12:26:10 -07:00
Leonardo Zide
514c1e54ec Moved common includes to precompiled header. 2019-05-30 12:06:54 -07:00
Leonardo Zide
0d1af47be4 Warning fixes. 2019-05-28 11:10:21 -07:00
Leonardo Zide
e45fe81ace Array cleanup. 2019-05-27 16:39:51 -07:00
Leonardo Zide
cf135bcbc5 Fixed compiler warnings. 2019-05-27 16:22:49 -07:00
Leonardo Zide
7d43f54e6e Fixed normal smoothing between texture and untextured triangles. Fixes #175. 2019-05-27 16:07:20 -07:00
Leonardo Zide
48dca161c0 Merge branch 'master' of https://github.com/leozide/leocad 2019-05-26 11:08:51 -07:00
Leonardo Zide
3070d25663 Support exporting flexible parts. Fixes #157. 2019-05-26 11:08:47 -07:00
Leonardo Zide
207d1158a7 Fixed compiler warnings. 2019-05-21 14:17:51 -07:00
Leonardo Zide
602dfeb8b6 Fixed /w4 warnings. 2019-05-18 11:33:27 -07:00
Leonardo Zide
ec720a6c04 Fixed ldconfig.ldr loading on case sensitive file systems. Fixes #348. 2019-05-18 10:49:52 -07:00
Leonardo Zide
d793373923 Set minimum height for parts list. 2019-05-11 16:07:27 -07:00
Leonardo Zide
2e5494c0df Set minimum parts list width. Fixes #346. 2019-05-11 12:05:26 -07:00
Leonardo Zide
8ca4831003 Fixed crash running offscreen. 2019-04-02 11:19:23 -07:00
Leonardo Zide
2f102c2274 Array cleanup. 2019-03-28 17:59:58 -07:00
Leonardo Zide
80d8016a5a Fix for compiler errors on Mageia. 2019-03-28 15:44:30 -07:00
Leonardo Zide
590422a30a Array cleanup. 2019-03-17 13:27:57 -07:00
Leonardo Zide
3f7db06fce Improved readability of texture mapping parameters. 2019-03-17 13:17:11 -07:00
Leonardo Zide
fb0bcc48ec Also print continuous build on the command line. 2019-03-17 12:29:02 -07:00
Tomasz Goliński
e07b9d7ec6 Allow building without QT gamepad module (#331) 2019-03-16 15:49:30 -07:00
Leonardo Zide
ad4292e9d0 Changed nsi paths to be relative to the root folder. 2019-03-14 12:18:58 -07:00
Leonardo Zide
b18645b880 Fixed hidden parts being exported and shown in parts lists. 2019-03-13 14:36:40 -07:00
Leonardo Zide
b31d33fd67 Don't show hidden pieces in submodels. 2019-03-12 19:51:04 -07:00
Leonardo Zide
9b7b17f45d Added button to select the active model on the Model List Dialog. 2019-03-12 13:08:43 -07:00
Thomas Cujé
d83c06100d Do not set active model from model list dialog
It's confusing and non-intuitive that saving the changes made to submodels opens the last
selected one. Furthermore we have the menu entries to open submodels.
2019-03-12 12:23:08 -07:00
Thomas Cujé
764c653252 Move submodels menu entry above models list
Makes it easier to find the menu entry even in models with large number
of submodels.
2019-03-12 12:22:55 -07:00
Thomas Cujé
e8949c413f Update models after submodel editing. Fixes #321 and #322 2019-03-12 12:13:59 -07:00
Thomas Cujé
df73a3569c Update piece info on submodel edit end. Fixes #222 2019-03-12 12:03:32 -07:00
Leonardo Zide
f99e6d7583 Fixed warnings. 2019-03-11 18:29:19 -07:00
Leonardo Zide
586ae0425f Fixed compiler warning. 2019-03-11 13:04:31 -07:00
Leonardo Zide
590a5bfa97 When creating a new tab, only set it active after a view has been created. Fixes #324. 2019-03-10 16:26:30 -07:00
Leonardo Zide
1d8988fbb4 Removed .svg extension from desktop file per @probonopd. 2019-03-10 14:06:01 -07:00
Leonardo Zide
d084d11b5a Show reason a file couldn't be loaded. 2019-03-10 13:41:21 -07:00
Thomas Cujé
cc2a5156f7 Place new submodel at origin. Fixes #314 2019-03-10 20:28:22 +01:00
Thomas Cujé
940e464560 Remove double error message box on project load 2019-03-10 20:28:22 +01:00
Thomas Cujé
273cc3d7be Mark project as modified on external file delete 2019-03-10 20:28:22 +01:00
Leonardo Zide
6d24cc1e08 Formatting fixes. 2019-03-09 16:38:54 -08:00
Thomas Cujé
94d4e49ed4 Minor improvements
- Fix gcc fallthrough warnings
- Replace deprecated QT QStyleOptionViewItemV3
- Improve translator usage
- Use QString instead of QByteArray
2019-03-10 01:17:24 +01:00
Thomas Cujé
3b92aea559 Add auto-load for most recent file. Relates #216 2019-03-10 01:17:24 +01:00
Leonardo Zide
53935734eb Clean up for loops. 2019-03-09 09:50:34 -08:00
Leonardo Zide
322a070a48 Fixed POV export when a part is missing from the library. Fixes #315. 2019-03-06 09:08:51 -08:00
Thomas Cujé
c258b4b709 Do not show submodel preview as active. Fixes #313 2019-03-06 17:40:13 +01:00
Thomas Cujé
fd29f37d11 Let QT translate keyboard shortcuts. Fixes #308
This way QT also translates default UI buttons like yes, no, ok, cancel,
ect...
2019-03-03 11:32:27 +01:00
Thomas Cujé
1959dc0be6 Fix viewsphere labels not being translated 2019-03-01 19:46:55 +01:00
Thomas Cujé
5707c497a4 Fix some compiler warnings 2019-03-01 09:56:11 +01:00
Leonardo Zide
32aceb19a2 Lowered mouse sensitivity. Fixes #296. 2019-02-28 16:12:18 -08:00
Leonardo Zide
319dd3a1a0 Preserve file case when loading a file from the same folder as the current project. Fixes #302. 2019-02-27 16:35:02 -08:00
Leonardo Zide
2356af4049 Swapped opaque and translucent polygon offsets. 2019-02-23 11:36:22 -08:00
Leonardo Zide
0abc4a258a Enabled polygon offset (with a smaller offset) for opaque triangles so they don't z fight with lines. 2019-02-23 11:33:39 -08:00
Johannes Sixt
31703618c3 Reduce z-fighting when translucent walls are touching opaque walls. (#303)
* Move GL calls around drawing of translucent meshes to lcContext.

* Reduce z-fighting when translucent walls are touching opaque walls.

This fixes issue #301.
2019-02-23 10:56:38 -08:00
Leonardo Zide
5d06035187 Fixed bounding box calculation of parts without triangles. 2019-02-22 17:02:38 -08:00
Leonardo Zide
188860f90d Crash fix when passing a quote on the command line. 2019-02-20 16:55:46 -08:00
Leonardo Zide
b47598f651 Added synth support for Hose Flexible parts. 2019-02-20 16:52:50 -08:00
Leonardo Zide
8ee515fcc8 Added synth support for Technic Flex-System hoses. 2019-02-19 18:05:30 -08:00
Leonardo Zide
0feb64ec82 Removed Space category since it was deprecated in the latest parts update. 2019-02-18 18:53:36 -08:00
Leonardo Zide
3128a078cb Fixed crash when deleting a submodel being edited in another view. 2019-02-09 16:43:39 -08:00
Leonardo Zide
8f59a67924 Detach camera when diving into a submodel. 2019-02-09 16:30:11 -08:00
Leonardo Zide
378ece224f Fixed compiler warnings. 2019-02-05 16:35:15 -08:00
Leonardo Zide
90b8409017 Better way of drawing the view sphere outline. 2019-01-22 14:34:44 -08:00