Commit graph

995 commits

Author SHA1 Message Date
Leonardo Zide
90b8409017 Better way of drawing the view sphere outline. 2019-01-22 14:34:44 -08:00
Leonardo Zide
dfa1a66906 Added outline to the view sphere. Closes #281. 2019-01-21 16:54:10 -08:00
Leonardo Zide
40ad756348 Added shortcut for closing the current tab. 2019-01-20 16:36:59 -08:00
Leonardo Zide
ee6ef69ede Confgurable view sphere colors. 2019-01-20 11:59:18 -08:00
Leonardo Zide
6077400b3c Round viewsphere highlight. 2019-01-19 20:04:08 -08:00
Johannes Sixt
e190900778 Convert SectionCallback to std::function<>. (#280)
This is just code hygiene. It makes the code shorter, more localized,
and more idiomatic C++.
2019-01-13 10:48:37 -08:00
Leonardo Zide
c8102034f9 Added view sphere highlight. 2019-01-12 17:43:23 -08:00
Leonardo Zide
19680a199b Moved shader code to separate files. 2018-11-22 16:13:02 -08:00
Leonardo Zide
71b5797038 Changed view sphere texture format to alpha only. 2018-11-06 13:45:14 -08:00
Leonardo Zide
7bb791e3eb Fixed dangling pointer access. Fixes #277. 2018-11-05 14:37:01 -08:00
Leonardo Zide
a10d1c1727 Create a static vertex buffer for the view sphere. 2018-11-03 17:54:32 -07:00
Leonardo Zide
8f04ccbec7 Fixed small leak merging files. Fixes #276. 2018-10-31 16:16:45 -07:00
Leonardo Zide
b77b9aac5c Replaced view cube with a sphere. 2018-10-28 17:59:01 -07:00
Leonardo Zide
58c63982d2 Renamed in-place editing options. 2018-10-14 08:47:28 -07:00
Leonardo Zide
149df626b6 Added option to go back to editing the top submodel. 2018-10-13 16:45:14 -07:00
Leonardo Zide
85d97887b2 Switch back to linear filtering for text to reduce blur. 2018-09-30 15:46:35 -07:00
Leonardo Zide
bcd6ce8791 Use anisotropic for the string cache texture. 2018-09-29 19:45:21 -07:00
Leonardo Zide
8697d57e00 Fixed OpenGL ES. 2018-09-26 17:04:47 -07:00
Leonardo Zide
7be53b5a0d Fixed uninitialized variable. 2018-09-26 14:56:58 -07:00
Leonardo Zide
9811fc860e Fixed crash when gamepads are enabled. Fixes #268. 2018-09-26 14:53:50 -07:00
Leonardo Zide
5dff72cf25 Fixed compiler error. 2018-09-24 12:07:50 -07:00
Leonardo Zide
671d5fa266 Fixed fallthrough warnings. 2018-09-24 11:29:05 -07:00
Leonardo Zide
61ce943b5b Fixed Qt 4.8 errors. 2018-09-24 11:16:39 -07:00
Leonardo Zide
75ed98b88d Added string cache. 2018-09-23 19:31:33 -07:00
Leonardo Zide
8b0bfc801e Fixed inconsistencies between default viewpoints and the view cube. 2018-09-19 13:19:01 -07:00
Leonardo Zide
f507e08cde Fixed wrong cursor when the mouse is over the view cube and other objects at the same time. 2018-09-19 12:56:45 -07:00
Leonardo Zide
7ba01dbff7 Fixed view cube text alignment. 2018-09-15 17:19:09 -07:00
Leonardo Zide
39ff605c8b Switch to camera orbit when dragging the view cube. 2018-09-11 16:36:10 -07:00
Leonardo Zide
45124f3f4f Fixed inverted position when clicking on the view cube. 2018-09-11 13:34:59 -07:00
Leonardo Zide
acadcde7d2 View cube rendering improvements. 2018-09-09 16:44:17 -07:00
Leonardo Zide
15d5e89cee Added view cube preferences. 2018-09-02 11:23:49 -07:00
Leonardo Zide
69d46cc4c4 Allow undoing hiding operations. Fixes #251. 2018-09-02 10:31:57 -07:00
Leonardo Zide
5e31d6985b Added new files to project. 2018-08-20 11:47:46 -07:00
Leonardo Zide
4aa2cbeeb6 First pass view cube. 2018-08-19 20:28:04 -07:00
Leonardo Zide
1c1a5fb599 Fixed model comments being duplicated every time undo is used. Fixes #247. 2018-08-01 14:05:01 -07:00
Leonardo Zide
7bdc918b98 Disable edge lines when line width is 0. 2018-07-31 11:33:32 -07:00
Leonardo Zide
d1b398be71 Added --shading and --line-width command line options. Closes #244. 2018-07-21 15:33:15 -07:00
Leonardo Zide
c25a389f19 Set the main model active if no models are set on the command line when saving images. Fixes #243. 2018-07-07 15:26:36 -07:00
Leonardo Zide
b09439d97d Fixed alpha value of translucent parts in PNG files. Fixes #241. 2018-07-04 11:19:15 -07:00
Leonardo Zide
508b1e416f Fixed string braided synth orientation. 2018-06-03 12:53:53 -07:00
Leonardo Zide
b4448e2d63 Fixed string braided normals. 2018-05-27 13:19:45 -07:00
Leonardo Zide
4f549e9163 Added new flexible ribbed hose lengths. 2018-05-26 18:13:04 -07:00
Leonardo Zide
39bd299b56 Fixed flexible axle normals. 2018-05-26 12:30:20 -07:00
Leonardo Zide
f6cbbe9636 Moved gamepad Qt check to 5.8. 2018-05-13 17:37:02 -07:00
Leonardo Zide
3276b9b320 Initial gamepad implementation. Closes #237. 2018-05-13 17:09:06 -07:00
Leonardo Zide
c8952c9147 Fixed properties widget during submodel editing. 2018-05-11 16:23:43 -07:00
Leonardo Zide
8d3b6a1d7a Fixed texmap in files included with an offset. 2018-05-07 12:26:26 -07:00
Leonardo Zide
d408d97fc1 Update timeline when editing a submodel. 2018-05-06 18:26:17 -07:00
Leonardo Zide
25751889cc Fixed missing path separator in image file name. Fixes #227. 2018-04-18 11:28:18 -07:00
Leonardo Zide
4f298a1833 Update parts list when editing submodels. 2018-04-17 16:08:29 -07:00
Leonardo Zide
152a3cf7b6 Fixed edit/find/select dialogs not working while editing a submodel. 2018-04-16 18:29:42 -07:00
Leonardo Zide
aaa33d55e5 Save images to the documents folder if a folder is not specified. Fixes #224. 2018-04-14 18:27:16 -07:00
Leonardo Zide
bf59b42e0a Linux fixes. 2018-04-14 11:53:00 -07:00
Leonardo Zide
900456ca31 Refactored http download code. 2018-04-14 11:44:39 -07:00
Leonardo Zide
7f6a7d82ae Submodel edit mouse fixes. 2018-04-07 18:45:44 -07:00
Leonardo Zide
752ae54788 Fixed interface draw location in active submodels. 2018-04-07 17:17:32 -07:00
Leonardo Zide
760d14c6e4 Fixed not being able to dive into a nested submodel. 2018-04-07 15:49:03 -07:00
Leonardo Zide
05cf0d6b90 Don't render the preview in wireframe mode. Closes #219. 2018-04-07 15:28:44 -07:00
Leonardo Zide
718b31a2bd Fixed selection tinting when editing submodels. 2018-04-07 11:45:00 -07:00
Leonardo Zide
4a9cd5556b Have actions run on the active submodel. 2018-04-07 08:43:54 -07:00
Leonardo Zide
b30ffd1b59 Initial implementation of in place submodel editing. 2018-03-29 10:20:36 -07:00
Leonardo Zide
e0acb8f2b3 Fix case of part ids included in models before searching for them. Fixes #215. 2018-03-23 19:03:16 -07:00
Leonardo Zide
c49a7f510a Removed GL_TEXTURE_MAX_LEVEL. 2018-03-21 18:26:00 -07:00
Leonardo Zide
930492ad24 Replaced http with https. 2018-03-21 16:47:00 -07:00
Leonardo Zide
9fc0544cfb Renamed Models to Submodels for consistency. 2018-03-17 12:24:16 -07:00
Leonardo Zide
47b28d06be Use texmap fallback if we fail to load the png file. Fixes #213. 2018-03-17 12:21:38 -07:00
Leonardo Zide
b07631d4a9 Added minifig wizard templates. Closes #212. 2018-03-11 20:35:04 -07:00
jschwender
f1e5796580 Update lc_model.cpp (#208)
Fixed typo in undo string.
2018-02-28 14:07:24 -08:00
Leonardo Zide
c5f4500b4b Disabled LC_LOAD_EXTENSIONS for GLES. 2018-02-25 15:58:16 -08:00
Leonardo Zide
232ece5e6b Only check QGLFormat::samples when sampleBuffers is enabled. Fixes #196. 2018-02-24 18:22:53 -08:00
Leonardo Zide
51bbdb9b97 Added option to remove key frames from selected objects. 2018-02-24 12:47:19 -08:00
Leonardo Zide
35eb41217a Fixed first key frame being overwritten when loading a file. Fixes #191. 2018-02-24 11:44:56 -08:00
Leonardo Zide
10e538efde Fixed static analysis warnings. 2018-02-21 17:27:24 -08:00
Leonardo Zide
172528ac1f Removed calls to foreach. 2018-02-21 16:12:18 -08:00
Leonardo Zide
10491629b7 Duplicate groups when duplicating pieces. Fixes #158. 2018-02-19 19:12:32 -08:00
Leonardo Zide
a1dfc7c26c Fixed inverted u texture coordinate on cylindrical projections. 2018-02-19 10:47:10 -08:00
Leonardo Zide
0c9c743951 Replaced email menu item with a link to the bug report page on github. 2018-02-18 16:17:48 -08:00
Leonardo Zide
856d0e10d5 Fixed camera menu not updating when selecting a viewpoint and the active view has a camera. 2018-02-17 17:32:07 -08:00
Leonardo Zide
dcc7b80ca3 Fixed case where Remove View on nested views was removing more views than it should. 2018-02-17 17:28:53 -08:00
Leonardo Zide
247dc0d7a2 Fixed Windows warning. 2018-02-17 11:34:15 -08:00
Leonardo Zide
f3aba2fea3 Don't lower case texture file names. 2018-02-17 11:32:29 -08:00
Leonardo Zide
a826fd9722 Fixed cylindrical texmap wrapping around the back. 2018-02-13 16:16:22 -08:00
Leonardo Zide
e2fdf6ca03 Match cylindrical texmap to spherical. 2018-02-13 15:54:55 -08:00
Leonardo Zide
2ac187d95c Bumped mesh version to force rebuild parts with welding issues. 2018-02-10 15:42:59 -08:00
Leonardo Zide
769b80b22d Support dragging colors from the color palette to paint pieces. Closes #177. 2018-01-12 10:50:25 -08:00
Leonardo Zide
146c3ea897 Updated version number. 2018-02-09 18:19:20 -08:00
Leonardo Zide
5ac11506b0 Fixed parts inside mpd files not drawing. Fixes #178. 2018-02-06 22:07:35 -08:00
Leonardo Zide
752ee5c4e7 Prevent mouse shortcuts from overriding overlay actions. Fixes #180. 2018-02-06 14:47:11 -08:00
Leonardo Zide
8334f2d877 Moved axis icon to keep it in view. Fixes #168. 2018-02-06 11:31:05 -08:00
Leonardo Zide
0621a3848f Fixed pan not working when the center of the model is behind the camera. Fixes #161. 2018-02-04 11:53:13 -08:00
Leonardo Zide
945473267f Fixed part description cache not checking file times. 2018-02-01 12:48:31 -08:00
Leonardo Zide
d7928a78ed Fixed spherical texture coordinates around poles. 2018-01-28 10:03:59 -08:00
Leonardo Zide
d3d88ccaf1 Fixed texcoord wrap issue with spherical texmap. 2018-01-27 19:45:06 -08:00
Leonardo Zide
ebc67d2a8b Initial implementation of spherical texture mapping. 2018-01-27 15:57:48 -08:00
Leonardo Zide
9c503eb7a4 Fixed moving the pivot point of rotated pieces. Fixes #179. 2018-01-22 17:14:38 -08:00
Leonardo Zide
5c1cfa4bc9 Only use triangles to calculate the mesh bounding box. 2018-01-20 17:35:21 -08:00
Leonardo Zide
6f940a473e Fixed normal smoothing on texmap vertices. 2018-01-20 12:04:50 -08:00
Leonardo Zide
f79a7f2093 Decreased vertex welding distance. 2018-01-20 11:51:57 -08:00
Leonardo Zide
a3995efa36 Fixed connecting to rebrickable on Linux. 2018-01-19 11:17:21 -08:00
Leonardo
0ec956e700 Fix for Qt Creator 5.10 precompiled header bug on Windows. 2018-01-19 09:46:58 -08:00