Commit graph

568 commits

Author SHA1 Message Date
leo
77424ccf16 Fixed wrong GLSL qualifier. 2015-05-17 16:23:14 +00:00
leo
b821a76b17 Compile fixes. 2015-05-17 06:47:10 +00:00
leo
7f7a93e015 Added shader support. 2015-05-16 23:04:35 +00:00
leo
b4ba0ef6b2 Fixed compiler error. 2015-05-15 21:45:53 +00:00
leo
7170c1d0ee GL extensions cleanup. 2015-05-09 19:54:29 +00:00
leo
77e103264d Set colors through the context. 2015-05-04 00:51:41 +00:00
leo
9cf0f11445 Clear index buffer after destroying it. 2015-04-30 22:39:27 +00:00
leo
170b7fc775 Changed the vertex and index buffer types to a class. 2015-04-30 22:35:40 +00:00
leo
20945362e5 Create a static buffer for the move overlay. 2015-04-27 00:47:31 +00:00
leo
a880056013 Add model meshes to the library vbo. 2015-04-26 18:41:16 +00:00
leo
aa861cd036 Use a single vertex buffer for all pieces. 2015-04-26 18:14:33 +00:00
leo
2063514f2f Added snap toggle back. 2015-04-24 22:11:50 +00:00
leo
5afec8b702 Rewrote move overlay drawing. 2015-04-20 02:09:18 +00:00
leo
d59dfe9444 Rewrote camera and light drawing. 2015-04-19 01:10:01 +00:00
leo
ba86509804 Removed more places where the vertex pointer was getting set directly. 2015-04-16 00:23:25 +00:00
leo
4ad0cfecf2 Added color icons to the timeline. 2015-04-15 18:49:17 +00:00
leo
81fc732158 Use a vertex buffer for the grid. 2015-04-14 04:14:10 +00:00
leo
0e0d352e6a Fixed crash on startup if a toolbar was floating when the application closed the previous time. 2015-04-13 02:33:48 +00:00
leo
42151522fc Added keyboard shortcuts to the Model List Dialog. 2015-04-12 06:44:38 +00:00
leo
85cb751f3e Fixed spaces being added to model properties fields. 2015-04-11 17:26:17 +00:00
leo
c0167e2dd0 Fixed POV-Ray export file browser to accept new files. 2015-04-06 23:23:24 +00:00
leo
3081ed2df8 Center axis labels. 2015-04-06 00:36:27 +00:00
leo
e7b436e85f Compile fix. 2015-04-05 00:31:14 +00:00
leo
f706b37481 Compile fix. 2015-04-04 23:59:38 +00:00
leo
86f89472ac OSX compile fixes. 2015-04-04 23:52:20 +00:00
leo
d0c669fa8a Updated version number. 2015-04-04 23:25:39 +00:00
leo
9a29c89bfb Fixed cases where comments around step statements could get out of order. 2015-03-31 22:57:15 +00:00
leo
344f1756a3 Show a default file name in the export dialogs. 2015-03-27 20:39:43 +00:00
leo
89df6b58c2 Added command line option to export 3ds files. 2015-03-27 20:20:12 +00:00
leo
c926da827c Don't set the current user as the author when loading a model if the file doesn't specify one. 2015-03-25 23:07:33 +00:00
leo
c9839c945e Fixed empty model being added when loading some MPD files. 2015-03-25 15:33:58 +00:00
leo
5dc511d56a Fixed steps and keyframes not saving correctly. 2015-03-24 15:12:39 +00:00
leo
01e67cbd88 Fixed camera up vector drawing. 2015-03-23 00:37:12 +00:00
leo
35fe45ada8 Preserve file comments when saving. 2015-03-21 20:12:04 +00:00
leo
39ef058aaa Make sure pasted pieces are added at the current step or later. 2015-03-21 16:52:14 +00:00
leo
406182db5d Fixed option to disable drawing lines. 2015-03-18 02:30:54 +00:00
leo
efacceee29 Fixed compiler warnings. 2015-03-18 02:25:22 +00:00
leo
be59eb624f Fixed line width not being set for edge lines. 2015-03-17 04:24:53 +00:00
leo
b6ef506997 Added option to open a model from the context menu. 2015-03-17 04:18:28 +00:00
leo
96e0b46931 Show hidden pieces with a different color in the timeline. 2015-03-16 01:47:55 +00:00
leo
f8a85809e8 Fixed multiple checkpoints when using the mouse to edit. 2015-03-16 01:15:30 +00:00
leo
0f953e1f63 Fixed crash undoing a timeline change. 2015-03-16 01:10:01 +00:00
leo
03c506c667 Added unhide selected option to timeline menu. 2015-03-15 20:01:07 +00:00
leo
601efe5f35 Added insert and remove step options to the timeline context menu. 2015-03-15 19:42:11 +00:00
leo
537aa5552b Better updates for the timeline. 2015-03-14 21:09:10 +00:00
leo
c4b15d05a9 Fixed timeline update crash. 2015-03-14 19:07:07 +00:00
leo
9446e2cde7 Made the timeline selection match the current model selection. 2015-03-13 05:26:01 +00:00
leo
7cb71e121c Added drag and drop to the timeline. 2015-03-08 00:27:11 +00:00
leo
958a7fa383 Added the initial version of the timeline widget. 2015-03-04 20:37:09 +00:00
leo
7440111b64 Allow different cameras for each submodel. 2015-03-01 23:17:50 +00:00
leo
635d408101 Support drawing primitives included directly by a model. 2015-02-28 20:31:57 +00:00
leo
a7da5aa79f Fixed case where the view matrix was being changed directly. 2015-02-28 07:10:51 +00:00
leo
168ca86c2e Update the bounding box of submodels after loading. 2015-02-23 20:25:53 +00:00
leo
03d9a6e3f5 Correctly read model property fields with spaces. 2015-02-23 19:33:19 +00:00
leo
4d9288c952 Support drawing triangles and lines in model files. 2015-02-23 00:50:37 +00:00
leo
7c1d5ae635 Fixed a case where it would be possible to create a model with infinite recursion. 2015-02-22 02:54:43 +00:00
leo
786bf4283b Rewrote how model names work. 2015-02-22 02:39:15 +00:00
leo
e4eb0e65d7 Fixed zoom extents and region on ortho cameras. 2015-02-15 02:24:08 +00:00
leo
141696ec8c Changed how zoom extents work. 2015-02-14 20:47:50 +00:00
leo
ced7e21d38 Flag initial view as active. 2015-02-13 22:16:48 +00:00
leo
c0759c226d Fixed inverted zoom shortcuts. 2015-02-13 05:35:57 +00:00
leo
b361e9069f Update model menu after merging another project. 2015-02-09 01:36:25 +00:00
leo
f4e14b6394 Fixed missing uppercase when update a model's piece. 2015-02-09 01:33:28 +00:00
leo
853f28c6c3 Changed pan tool to have the mouse follow the objects on the screen. 2015-02-08 21:05:50 +00:00
leo
c670893deb Rendering optimizations. 2015-02-08 18:54:51 +00:00
leo
beec734524 Don't read model name from MPD files. 2015-02-08 03:33:14 +00:00
leo
100245f207 Don't save model name in MPD files. 2015-02-08 03:29:42 +00:00
leo
b5ad5dba15 Fixed crash with export functions. 2015-02-08 00:05:07 +00:00
leo
7b34dd1fa7 Fixed refcount for pieces. 2015-02-07 23:20:15 +00:00
leo
a31963f1bd Fixed Minifig Wizard crashes related to buffer operations without a context. 2015-02-07 23:02:20 +00:00
leo
49a49125c2 Enabled GL debug messages. 2015-02-07 22:01:18 +00:00
leo
7b52f7ba40 Matched mouse wheel speed with previous versions. 2015-02-07 07:16:15 +00:00
leo
162dc42800 Fixed loading mpds with files that end in dat. 2015-02-06 22:40:45 +00:00
leo
980d0c4a03 Removed category update before the window is created. 2015-02-05 22:55:09 +00:00
leo
93363c1069 Fixed loading mpds with spaces in model names. 2015-02-04 05:24:35 +00:00
leo
4b82e75f5b Moved more file name variables to QString. 2015-02-02 06:00:42 +00:00
leo
c6aad2c571 Fixed compiler error. 2015-02-02 06:00:21 +00:00
leo
22dd34dfb3 Fixes for Qt5. 2015-02-01 02:33:42 +00:00
leo
e456b05ebf String cleanup. 2015-01-31 21:44:57 +00:00
leo
df7afb956a More Qt cleanup. 2015-01-31 20:38:53 +00:00
leo
bf2457594e Merged image and profile source files. 2015-01-31 20:19:03 +00:00
leo
bce59e8873 Message box cleanup. 2015-01-30 16:30:13 +00:00
leo
21d622bd59 Merged main window classes. 2015-01-25 23:04:39 +00:00
leo
c63cb59fd6 Removed base window class. 2015-01-25 01:34:13 +00:00
leo
c5bfc9c48d Correctly set the center of rotation for single pieces. 2015-01-24 02:12:24 +00:00
leo
1f1c93c28b Create window widget after the library is loaded. 2015-01-23 23:18:32 +00:00
leo
06f11badde Use the piece position for rotation if only one piece is selected. 2015-01-23 18:45:58 +00:00
leo
f0209fa021 Added Wavefront export command line option. 2015-01-23 01:58:33 +00:00
leo
257672a64f Changed startup order to fix saving images from the command line. 2015-01-21 22:41:53 +00:00
leo
817ffce7ef Avoid using floating point notation in the properties pane. 2015-01-19 23:48:46 +00:00
leo
8c990e7fb7 Updated minifig settings. 2015-01-18 08:00:35 +00:00
leo
b835a913e4 OSX fixes. 2015-01-18 07:20:41 +00:00
leo
07062693a8 Moved relative snap option to the toolbar. 2015-01-18 05:36:14 +00:00
leo
dfa7396b29 Changed the way the transform entries work to match the mouse and keyboard. 2015-01-18 04:59:02 +00:00
leo
e1e2fcc26a Fixed wrong mouse cursor when nothing is selected. 2015-01-18 04:41:06 +00:00
leo
876a2d9bcc Fixed relative rotation axis. 2015-01-18 04:26:20 +00:00
leo
a7d83bf357 Fixed rotation of multiple pieces when nothing is focused. 2015-01-17 23:44:53 +00:00
leo
e358dc7ddd Select pasted pieces. 2015-01-17 20:17:35 +00:00
leo
cc36ecd5a1 Removed unused focus command. 2015-01-17 18:36:09 +00:00
leo
6ad512d012 Only update the piece info for a model after its project is set active. 2015-01-17 18:29:10 +00:00
leo
a9fb816839 Fixed wrong initial color list selection. 2015-01-17 02:02:30 +00:00
leo
3d79dbd8cc Fixed crash trying to update simple cameras. 2015-01-17 01:47:36 +00:00
leo
88e935ccd8 Fixed reset cameras option. 2015-01-16 02:07:31 +00:00
leo
af37e7008d Removed support for naming pieces in a model. 2015-01-15 02:21:10 +00:00
leo
474c9058ba Fixed double dot on file names when saving images. 2015-01-14 22:38:07 +00:00
leo
7a49635ea8 Fixed wrong colors in the wavefront exporter. 2015-01-14 16:41:32 +00:00
leo
77683ccfa8 Removed group separator being added to numbers when saving files. 2015-01-12 16:01:01 +00:00
leo
ac06b213f2 Update version number. 2015-01-12 05:02:50 +00:00
leo
7db0e7f21e Fixed html export. 2015-01-12 04:49:30 +00:00
leo
e78334a671 Removed debug code. 2015-01-11 02:05:20 +00:00
leo
12d0094806 Store piece transformations as matrices to allow scaling. 2015-01-10 20:30:37 +00:00
leo
1de2bffb73 Fixed valgrind errors. 2015-01-08 05:40:22 +00:00
leo
b6f8e8e651 Reuse same mesh for all placeholder pieces. 2015-01-08 04:50:38 +00:00
leo
06496f1cf0 Remove temporary pieces from the library after unloading a project. 2015-01-07 16:52:42 +00:00
leo
16415b136a Show last step after loading a model. 2015-01-07 15:02:27 +00:00
leo
2fe1ed273a Workaround for a bug in QTextStream::pos() that was causing some mpd files to fail to load. 2015-01-06 15:38:51 +00:00
leo
b1ed33ac3f Changed parts search to be just a simple substring search. 2015-01-06 15:17:29 +00:00
leo
7d30c9bc88 Fixed cases where a model wasn't creating its piece. 2015-01-05 22:44:05 +00:00
leo
5e69e680c6 Prevent models and placeholder parts from poluting the cache. 2015-01-04 18:59:02 +00:00
leo
2baabd03f1 Fixed wrong case in partids for submodels. 2015-01-03 01:00:30 +00:00
leo
28be739db0 Fixed bounding box calculation of nested submodels. 2015-01-02 16:44:01 +00:00
leo
b537f4c9a1 Fixed crash dragging models from the parts tree. 2015-01-02 16:21:07 +00:00
leo
c6b27f2d05 Fixed loading mpds that have files with spaces in their names. 2015-01-02 12:05:49 +00:00
leo
7546ff0b54 Fixed crash drawing models in the piece preview. 2015-01-02 11:58:14 +00:00
leo
6f3694fb89 Fixed uninitialized grid size in some cases. 2015-01-02 01:07:41 +00:00
leo
343ed3a1fd Moved Properties to Model menu. 2014-12-31 17:05:23 +00:00
leo
e383eed986 Fixed loading files from the command line. 2014-12-31 16:38:30 +00:00
leo
4c74b6ecf4 Fixed bounding box calculation of submodels. 2014-12-31 16:15:51 +00:00
leo
03303cd06e Zoom extents after loading a file. 2014-12-30 23:45:27 +00:00
leo
98aa121dec Correctly draw selection box outline of submodels. 2014-12-30 16:56:13 +00:00
leo
d7396b4edb Fixed export functions. 2014-12-30 16:30:12 +00:00
leo
e1e9a022ca Fixed saving mpd files. 2014-12-26 17:09:11 +00:00
leo
0aae5d339f Fixed mouse selection of submodels. 2014-12-26 15:44:46 +00:00
leo
7716e0ae37 Always use last step when drawing models that aren't current. 2014-12-25 15:25:50 +00:00
leo
788f0bf9e4 Added support for drawing submodels. 2014-12-24 15:52:52 +00:00
leo
ffc58f554c Fixed merge. 2014-12-23 17:02:23 +00:00
leo
b3d8fafeb4 Fixed copy and paste. 2014-12-15 23:55:17 +00:00
leo
b20d52e2f9 Added model list dialog. 2014-12-12 23:42:09 +00:00
leo
5037897261 Added model menu. 2014-12-09 23:56:29 +00:00
leo
1b1b14b9b2 Fixed bug entering new file names when saving. 2014-12-08 19:30:53 +00:00
leo
493ad442b2 Finished separating model from project. 2014-12-08 07:32:39 +00:00
leo
dbe7f759ed Move command handling to main window. 2014-12-04 01:47:28 +00:00
leo
9ebccc4a19 Moved last remaining functions out of project. 2014-11-30 17:53:09 +00:00
leo
d4ab2e9f90 More cleanup. 2014-11-29 02:55:58 +00:00
leo
deabf0524a Moved more functionality out of the project. 2014-11-25 00:51:34 +00:00
leo
28a030dd9a Fixed camera and light drawing. 2014-11-24 00:43:13 +00:00
leo
a63743c73f Reorganized drawing functions. 2014-11-23 23:48:56 +00:00
leo
848224bf3b Reorganized group functions. 2014-11-10 00:06:11 +00:00
leo
477cf69977 Reorganized zoom functions. 2014-11-08 01:05:17 +00:00
leo
c7ab540117 Small cleanup. 2014-10-24 00:41:19 +00:00