Commit graph

881 commits

Author SHA1 Message Date
leozide
6eb252f531 Removed unused debug code. 2017-03-24 16:36:48 -07:00
Leonardo Zide
c85f0f7eea Disable normals for unlit passes. 2017-03-24 09:34:53 -07:00
Leonardo Zide
f99a093c7a Draw edge lines unlit. 2017-03-22 23:35:02 -07:00
leozide
48f5b28b85 Fixed warning. 2017-03-20 13:03:31 -07:00
Leonardo Zide
50b9ab1984 Faster mesh sorting. 2017-03-19 22:59:55 -07:00
Leonardo Zide
8023f868cd Support loading parts from the 'unofficial' folder. 2017-03-19 13:12:24 -07:00
Leonardo Zide
53684a6790 Merge pull request #39 from j6t/master
Fix regular file check again.
2017-03-19 10:21:46 -07:00
Johannes Sixt
64cae0b849 Fix regular file check again.
The previous Windows fix accidentally reverted the logic of the check for
a regular file. As a consequence, ZIP files are not recognized anymore.
2017-03-19 11:38:35 +01:00
Leonardo Zide
5ddd5b4e86 Dynamically resize rows and columns in the color list. Closes #21. 2017-03-18 18:31:04 -07:00
Leonardo Zide
9b933b6c57 Fixed comments in saved files being moved in some cases. Fixes #35, #36. 2017-03-18 17:42:34 -07:00
Leonardo Zide
29aae2b6be Merge pull request #38 from j6t/master
Synthesize power functions linear actuators.
2017-03-18 10:19:04 -07:00
Leonardo Zide
657df22db7 Fixed Windows build. 2017-03-18 10:17:32 -07:00
Johannes Sixt
8ee94ac310 Synthesize power functions linear actuators.
Power function linear actuators can be treated almost the same as shock
absorbers. The only difference is the orientation of the part: The parts
are extended is along the Y axis instead of the Z axis.
2017-03-18 14:58:11 +01:00
leozide
d6efc97089 Removed SetLightingMode. 2017-03-17 15:53:26 -07:00
Leonardo Zide
9c0c8ade38 Merge pull request #37 from j6t/master
Determine file size only of regular files.
2017-03-17 14:19:09 -07:00
Johannes Sixt
ba280bc1a7 Determine file size only of regular files.
lcDiskfile::Open() uses fopen() to open a file. On Linux, this can open
a directory just fine (at least for reading). This is slightly problematic
when it is attempted to open the parts library $(sharedir)/library.bin
and the library is an unzipped directory hierarchy. It is first attempted
to open the path as a ZIP file. While opening the directory as a file is
successful, subsequent navigation in the open "file" fails.

Pretend that a directory is an empty file so that the ZIP file reader is
not tempted to navigate around in the "file" and so reports failure in a
deterministic manner.

We could have inserted the check for regular files in lcDiskFile::Open(),
but this burdens every file open request, which can happen thousands of
times when the parts library is extracted instead of in a ZIP file.
2017-03-17 08:15:05 +01:00
Leonardo Zide
acd5a485f0 Added a decal material to fix the texmap extension. 2017-03-12 13:51:14 -07:00
Leonardo Zide
e645228128 Fixed stud grid color. 2017-03-12 12:40:59 -07:00
Leonardo Zide
61e803c161 Added fake lighting shader. 2017-03-11 16:47:21 -08:00
leozide
0677dcfd02 Moved Duplicate to the Piece Menu. 2017-03-08 15:57:24 -08:00
leozide
8125ee8f74 Moved Duplicate to the Piece Menu. 2017-03-08 15:55:38 -08:00
leozide
cf65201095 Added Duplicate Piece action. 2017-03-08 15:49:57 -08:00
Leonardo Zide
6915c3a456 Merge pull request #34 from j6t/master
Draw gray bounds around more color indicators
2017-03-06 14:43:22 -08:00
Johannes Sixt
ebb8f74bbe Draw a dark gray border around color picker icons.
This makes colors more visible that are very similar to the user interface
background color.
2017-03-06 19:53:50 +01:00
Johannes Sixt
f0a2271ab0 Draw a dark gray border around the color list's color icon in the tooltip.
Some combinations of colors and tooltip background are only barely visible.
This makes them more visible, while it does not distract in other cases.
2017-03-06 19:53:50 +01:00
Leonardo Zide
043246fbe6 Changed normal format for compatibility. 2017-03-05 22:14:50 -08:00
Johannes Sixt
9944557f8d Draw a dark gray border around color icon in the properties panel.
This makes white, yellow and other colors more visible. In particular,
white entries do not look like absent against a white line background.
2017-03-05 00:35:13 +01:00
leozide
4d844dd90a Added normals to cube mesh. 2017-03-03 18:04:52 -08:00
Leonardo Zide
c833912f78 Merge pull request #31 from j6t/master
Draw a dark gray border around color indicators in the time line.
2017-03-03 16:11:04 -08:00
leozide
3e4063f962 Set lighting for minifigs. Fixes #32. 2017-03-03 16:08:39 -08:00
Johannes Sixt
d393cf83b3 Draw a dark gray border around color indicators in the time line.
This makes white, yellow and other colors more visible. In particular,
white entries do not look like absent against a white window background.

Due to the border, the circle must now be smaller by one pixel.
2017-03-04 00:06:01 +01:00
leozide
f7aa4890ee Remove empty steps when moving pieces to a new model. 2017-03-03 12:14:32 -08:00
leozide
1794e8c9c2 Fixed invalid bounding box when no pieces are visible. 2017-03-03 12:07:04 -08:00
Leonardo Zide
51d17b0031 Merge pull request #28 from pbartfai/patch-5
OBS fix: include distribution tag in rpm filename
2017-03-01 10:57:36 -08:00
Leonardo Zide
4096d4a325 Fixed normal calculation. 2017-03-01 08:36:51 -08:00
Peter Bartfai
58945803d7 OBS fix: include distribution tag in rpm filename 2017-03-01 16:50:21 +01:00
Leonardo Zide
05fd08d32a Merge pull request #25 from pbartfai/patch-3
Mageia Qt5 fix
2017-03-01 07:18:57 -08:00
Leonardo Zide
e20f479ac8 Merge pull request #26 from pbartfai/patch-4
Make OBS detection username independent
2017-03-01 07:18:39 -08:00
Peter Bartfai
55eea07d97 Make OBS detection username independent 2017-03-01 15:19:05 +01:00
Peter Bartfai
8daf73b83e Mageia Qt5 fix 2017-03-01 09:44:20 +01:00
leozide
37327277e8 Fixed mesh generation bug. 2017-02-28 17:14:29 -08:00
leozide
7e3f572b8e Added shaders for each material/lighting combination. 2017-02-28 15:20:34 -08:00
Leonardo Zide
fa099a12e2 Merge pull request #24 from pbartfai/patch-2
Mageia fix
2017-02-28 14:19:10 -08:00
Peter Bartfai
e32febd6e1 Mageia fix 2017-02-28 22:54:14 +01:00
Leonardo Zide
9f578c21fa Merge pull request #23 from pbartfai/patch-1
Maegeia linux fix.
2017-02-28 12:55:30 -08:00
Peter Bartfai
dc8e8a3603 Maegeia linux fix 2017-02-28 16:24:15 +01:00
leozide
9978230506 Calculate mesh normals. 2017-02-27 16:03:12 -08:00
probonopd
e5f746cb6b Generate and upload an AppImage on each Travis CI run (#22)
* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Only build AppImage on Linux
2017-02-25 15:07:43 -08:00
leozide
e09d9cae3f Fixed warning. 2017-02-21 12:57:25 -08:00
Leonardo Zide
6df1ceb165 Parse BFC statements in parts. 2017-02-21 08:09:13 -08:00