Commit graph

329 commits

Author SHA1 Message Date
otakuto
8f49919d8b Remove -fpermissive flag (#2457) 2019-08-02 16:17:38 +09:00
shun-iwasawa
fe2893b15c clang format 2019-08-02 15:48:26 +09:00
shun-iwasawa
31b6f77785 Merge branch 'remove-tArrayCount-macro' of https://github.com/otakuto/opentoonz into otakuto-remove-tArrayCount-macro 2019-08-02 15:47:17 +09:00
manongjohn
649b9abaec Palette switching behavior changes (#2518)
* Track and restore current style

* Auto switch to new style page

* Auto Switch to drag/drop-merged palette page

* Default to style 1 when returning to deleted style
2019-07-12 00:57:23 +09:00
Campbell Barton
e4aac6f433 Cleanup: undeclared function warnings
Make static or comment out.
2019-06-30 12:59:14 +10:00
shun-iwasawa
ad786a7134 fix macrofx link (#2620) 2019-06-20 00:06:28 -06:00
manongjohn
e4c3c8ecda Fix setting working directory 2019-06-02 19:21:05 -04:00
manongjohn
273f30f45a Get app directory name 2019-06-02 13:41:10 -04:00
manongjohn
fba66295ba Fix app rename causing not to work 2019-06-02 08:39:40 -04:00
manongjohn
ccec799e01 Fix copyDir for macOS 2019-06-01 11:38:45 -04:00
shun_iwasawa
83c0b2c4ec handle name filters 2019-05-28 13:28:11 +09:00
manongjohn
65b0ffe260 Fix macOS portable detection 2019-05-25 11:14:07 -04:00
shun_iwasawa
f5f4afa9d0 readDirectory enhancements 2019-05-22 17:24:51 +09:00
John Dancel
c7c567e380 Allow sequenced files starting with 0 2019-05-03 06:32:34 -04:00
otakuto
e347adcb20 Remove make_cast_it (#2594) 2019-04-16 14:56:35 +09:00
manongjohn
f2ace2130c Fix crash when loading bad fill data (#2519)
* Ignore bad intersection data

* Fix crash removing unwanted intersect data
2019-03-19 13:03:40 +09:00
otakuto
2647ec5f3f Use alignas instead of DV_ALIGNED (#2437) 2019-02-21 13:45:24 +09:00
otakuto
6756911932 Remove tcg_deleter_types.h (#2436) 2019-02-21 11:58:39 +09:00
shun-iwasawa
0c69c1b6f2 fix output bpp glitch (#2509) 2019-02-07 18:10:43 +09:00
manongjohn
54e85db21d Fix Z=0 Camera Preview crash (#2405)
* Fix Z=0 Camera Preview crash
2019-01-23 10:59:53 +09:00
shun_iwasawa
b487a57263 test using QPointer::data for sender argument 2019-01-09 16:27:09 +09:00
shun_iwasawa
fff476431b Merge branch 'feature10_sound' of https://github.com/morevnaproject/opentoonz into morevnaproject-feature10_sound 2019-01-09 15:19:39 +09:00
shun-iwasawa
f39ea05cac Remove Version Numbers from File Names (#2410)
* remove version numbers from file names

* update plist and systemvar for osx

* modify appveyor script
2018-12-28 11:15:09 +09:00
manongjohn
9e8e639c30 Fix loading macrofx preset issue (#2425) 2018-12-27 10:50:10 +09:00
Tact Yoshida
1d7cf9a5bf Remove tArrayCount macro 2018-12-20 05:16:25 +09:00
shun-iwasawa
93fdd4ee3f matte color (#2418) 2018-12-19 14:29:00 +09:00
shun-iwasawa
cfa6ff15c0 improve jpeg chroma subsampling (#2419) 2018-12-18 16:37:47 +09:00
shun-iwasawa
5b2332a085 New Fx: Text Fx Iwa (#2393)
* text fx iwa

* fix for osx and linux
2018-12-18 14:55:22 +09:00
Ivan Mahonin
657d805309 Fix antialiasing (#2289)
* fix antialiasing for strokes

close #1166
close #2285
2018-12-17 16:13:22 +09:00
otakuto
6985407a96 remove duplicate include (#2271) 2018-10-31 12:00:01 +09:00
shun-iwasawa
fdbab550ad load jpeg dpi from exif, save to jfif (#2322) 2018-10-18 11:56:20 +09:00
shun-iwasawa
18a7c631a5 fix updating animated guide (#2264) 2018-09-11 15:41:56 +09:00
otakuto
ed7dcd5873 using std::swap instead of tswap (#2195) 2018-08-30 17:18:43 +09:00
Ivan Mahonin
e162dba222 #sound: seamless 2018-08-18 10:44:22 +07:00
Ivan Mahonin
3cd9622ed8 #sound: improve sound_qt 2018-08-18 10:44:22 +07:00
shun-iwasawa
b932c159c4 fix input field crash (#2223) 2018-08-10 16:00:11 +09:00
manongjohn
b66bc4e313 Show actual fonts in font dropdowns (#2080)
* Show actual fonts in font dropwdowns
2018-08-06 15:46:52 +09:00
shun-iwasawa
2a1a635007 fix unc path conversion (#2173) 2018-08-01 16:42:10 +09:00
shun-iwasawa
e3b1897540 set system path with command line qualifiers (#2143) 2018-07-10 14:42:57 +09:00
shun-iwasawa
a86fd8f80a fix vector region style on osx (#2105) 2018-06-26 15:21:18 +09:00
shun-iwasawa
85c99518a8 fix load tzp (#2091) 2018-06-21 11:31:23 +09:00
shun-iwasawa
e87e0815f7 Make More UI Texts Translatable (#2026)
* make ui texts translatable

* add more translatable texts

* load translate file for default commands
2018-06-04 12:18:43 +09:00
Jeremy Bullock
75c9c58524 Improvements to Vector Snap (#1906)
* Improvements to Vector Snap
2018-05-25 16:21:25 +09:00
Konstantin Dmitriev
a9c425317e Fix sound playback on Linux by enabling fix #1302 for Linux platform (#1749)
close #1302 
close #1097 
close #907
2018-05-25 10:28:41 +09:00
shun-iwasawa
b5e76bca01 fix sequential check (#1997) 2018-05-24 16:45:18 +09:00
shun-iwasawa
5b724a61d7 Allow for multilingual FX Help tooltips by jpturcotte (modified) (#1931)
* Allow for multilingual FX Help tooltips

This PR allows for showing the FX Help tooltips in the user's preferred language, as indicated in" Preferences". If a folder by the name of the language string exists in "$stuff/doc" (e.g. "$stuff/doc/English"), the help files there will be shown first. If the folder or requested file cannot be found, the files in "$stuff/doc" will be shown by default. This is my first code PR, and I am not a programmer, so please be lenient. Thanks to @RodneyBaker for coming up with the idea, to @turtletooth and @shun-iwasawa for helping me resolve my build issues, and finally to @manongjohn for providing encouragement and the logic behind these changes!

* fix tistream checking
2018-05-21 15:30:48 +09:00
shun-iwasawa
dd780b2779 colormodel image (#1907) 2018-05-21 15:11:35 +09:00
shun-iwasawa
eff63f0236 do not check seqnum for tnz files (#1955) 2018-05-09 16:09:58 +09:00
manongjohn
4ee91c9e42 Fix number+letter filename save and detection (#1833)
close #235
close #1382
close #1693
close #1761
close #1768
close #1809
2018-04-23 13:34:00 +09:00
shun-iwasawa
00ab483723 fix crash on batch rendering with unc path (#1866) 2018-03-14 15:46:59 +09:00
Jeremy Bullock
e122a937ef Fill Tool: Allow Fillable Gap Size Change in Vector Images (#1317)
close #1093 

* CAUTION *
Changing the "Maximum Gap" from the default value (1.15) will lose backward compatibility of PLI file.
2018-03-07 15:09:17 +09:00
shun-iwasawa
e6b1248e52 Fix png and spritesheet render (depremultiply) by turtletooth (modified) (#1844)
* Fix png and spritesheet render (depremultiply)

* move depremultiply in PngWriter
2018-03-05 22:00:18 -07:00
shun-iwasawa
b08db1990c stop using global context (#1785) 2018-03-05 20:52:40 -07:00
shun-iwasawa
3a1040f273 add merge inks option to matchline (#1826) 2018-02-28 16:32:37 +09:00
Jeremy Bullock
e23841235b
Merge pull request #1740 from shun-iwasawa/fix_plastic_black_contour
Fix Plastic Tool not to Create the Black Contour
2018-01-22 11:38:05 -07:00
shun_iwasawa
927bc0fbcc fix plastic black contour 2018-01-19 11:18:08 +09:00
shun_iwasawa
7e52a2e788 enlarge plastic texture 2018-01-12 21:12:24 +09:00
manongjohn
cd95b04c7e Minus sign crash fix 2017-11-26 03:13:12 -05:00
Jeremy Bullock
7712907c92 Middle Mouse Drag to Edit Values (#1362)
* Middle mouse drag to edit numeric values
* The function editor spreadsheet values can be ctrl + dragged to change their value. Alt + click on a key will clear it.
2017-11-20 16:28:59 +09:00
shun_iwasawa
b7aa7cd3f3 undo for autopaint 2017-11-07 13:11:02 +09:00
shun_iwasawa
3e2518a270 env file template 2017-10-20 22:23:54 +09:00
Jeremy Bullock
1e17edb69a Guided Drawing Feature (#1297)
* Guided Drawing Feature
2017-09-25 14:29:38 +09:00
Jeremy Bullock
6767bee6b3 Fix for sierra scrub crash (#1302)
* fix for sierra scrub crash
2017-09-22 16:19:10 +09:00
manongjohn
20c9615add Foreign letter and Apostrophe fix (#1468)
close #666 
close #1226 

* Double-quote strings with foreign letters

* Stop escaping apostrophe for Windows and OSX
2017-09-15 16:57:43 +09:00
Jeremy Bullock
1a58e5883a Move AutoClose Value to TEnv (#1467) 2017-09-15 14:41:27 +09:00
shun_iwasawa
2c0f507302 color filter available on render and vector levels 2017-09-11 11:03:30 +09:00
shun-iwasawa
5e6203f300 Fix crash on using preference template (#1456)
* fix crash on using preference template
2017-09-08 14:26:03 +09:00
shun-iwasawa
acd6b875b5 fix registry setup (#1457) 2017-09-07 17:13:23 +09:00
Jeremy Bullock
46512f5f12 Allow All Windows Builds to be Portable (#1381)
* Allow All Windows Builds to be Portable if 'portablestuff' Folder in Main Folder
2017-09-04 15:13:56 +09:00
shun_iwasawa
6c274854e3 font position and size fix 2017-08-23 15:05:52 +09:00
Jeremy Bullock
da1fe046a8 Merge pull request #1294 from shun-iwasawa/typetool_using_qt
Enable Type Tool in OSX
2017-08-22 23:17:35 -06:00
Jeremy Bullock
cd00fd74d3 Snapping and Frame Range for Vector Brush (#1319)
* Frame Range for Vector Brush
* Brush Snapping
2017-08-14 19:59:51 +09:00
Dave
5a94754d3c Various TFarm fixes (#1140)
close #1125 
close #1126 
close #1127 
close #1129
2017-08-03 14:29:04 +09:00
shun_iwasawa
0cae242b72 clang format all 2017-07-20 19:46:27 +09:00
shun_iwasawa
df21fa034b type tool using qt 2017-06-22 21:06:57 +09:00
Ivan Mahonin
7fe8291637 #common #bug: fix toUpper/toLower functions
Standard forbids modifying of data by string::c_str() pointer, in some
case it's may affect other strings.
2017-06-15 20:49:57 +07:00
Ivan Mahonin
2fc36cb841 Allow to cross compile for Windows with Linux/Mingw (part 2 of 3, bugfixes) (#1149)
* #mingw #bug: place explicit instantiations on templates before first use

* #mingw #bug: remove API attributes from inline functions

* #mingw #bug: add 'static' attribute for local functions

* #mingw #bug: fix API attributes for splitSpeedInOutSegment

* #mingw #bug: replace strstream to stringstream

* #mingw #bug: remove cross references to plasticskeleton from tnzcore

* #mingw #bug: fix bug with order of initializaition of static variables

* #mingw #bug: fix glutInit
2017-05-19 19:20:33 +09:00
Ivan Mahonin
e280ae86d6 Allow to cross compile for Windows with Linux/Mingw (part 1 of 3, preprocessor) (#1148)
* split _WIN32 and _MSC_VER, lowercase includes
2017-05-08 21:13:29 +09:00
shun-iwasawa
9d08564877 SoapBubbleFxIwa Improvement (#1175)
* fit thickness and center opacity

* loop and shift spectrum

* render mode
2017-04-28 11:52:23 +09:00
shun-iwasawa
51c8ee5bc1 add null pointer check (#1106) 2017-03-16 19:02:07 +09:00
shun_iwasawa
597034da8d fix vector fill 2017-03-03 17:38:46 +09:00
shun_iwasawa
a3cdd885f5 added color filter feature and modified composition with colorscale 2017-01-16 20:33:23 +09:00
jabarrera
96d45ce5a1 Fix crash by catching exceptions and skipping frames with bad names. Show warning with skips to message center (#966) 2016-12-21 15:25:34 +09:00
jabarrera
e8ad777186 Fix for Linux audio on i386
Specialized array copying caused problems and isn't needed.
2016-11-27 22:26:45 +11:00
Campbell Barton
cbcab0b54e Linux: Correct misuse of SDL_MixAudio
memset needs to be used even with full volume.
2016-11-27 11:45:45 +11:00
jabarrera
7c1be800e9 Fix audio reproduction issue (863) in GNU/Linux 2016-11-27 11:34:25 +11:00
shun_iwasawa
53bef61327 Merge remote-tracking branch 'origin/master' into numpad_for_palette_shortcut 2016-10-26 20:54:28 +09:00
Jeremy Bullock
d8339e9782 Fix for ffmpeg named with sequence names (#826)
- Now ffmpeg types can have a name such as img.0001.gif or img_0001.mp4 with no crash. 
close #767
2016-10-06 17:19:46 +09:00
Jeremy Bullock
63610baef4 Merge pull request #764 from shun-iwasawa/organize_palette
"Organize palette" and "Update colors by using picked position" features for the workflow using raster level as a color model
2016-10-02 22:33:36 -06:00
shun_iwasawa
beb3057607 enable shift + tab 2016-09-13 19:10:05 +09:00
shun_iwasawa
4635d82930 numpad for palette shortcut 2016-09-12 19:51:52 +09:00
shun-iwasawa
7cd1ff71f5 clang format (#797) 2016-09-08 16:54:16 +09:00
Campbell Barton
a6cacc8cf1 Translate comments to English 2016-09-08 15:07:21 +10:00
MCCCS
a0ce326e1b 🐛 Fix spelling mistakes 2016-09-07 16:28:50 +03:00
Campbell Barton
4121b4ed18 Merge pull request #723 from ckorn/format
Add format string literal
2016-09-01 17:47:40 +10:00
shun_iwasawa
c53f280f96 Merge remote-tracking branch 'origin/master' into organize_palette 2016-08-26 21:01:24 +09:00
shun_iwasawa
9cbd0e8743 organize_palette 4 2016-08-26 20:59:54 +09:00
shun_iwasawa
98ad89fbd3 Merge remote-tracking branch 'origin/master' into stageinch2 2016-08-19 12:33:38 +09:00
Shinya Kitaoka
6fa9acbd5f Add source formatting check (#689)
* add source formatting check
* fix beautification scripts
2016-08-18 21:10:57 +09:00
shun_iwasawa
e897af4ff2 organize palette 3 2016-08-18 20:25:44 +09:00
shun_iwasawa
bb0d83547a add dpi compatibility check and remove comment 2016-08-18 17:27:10 +09:00
shun_iwasawa
d6df3f9261 introducing stage-standarddpi 2016-08-16 13:52:38 +09:00
Christoph Korn
c17229f066 Add format string literal
Prevents security issues when the string contains
format specifiers.
Fixes: warning: format not a string literal and
no format arguments [-Wformat-security]
2016-08-10 22:30:04 +02:00
Jeremy Bullock
2969b4c245 support for jpeg import (#656)
This allows jpeg images to be imported.
close #576
2016-08-10 21:46:04 +09:00
shun-iwasawa
27b0cfd38c clang formatting (#703) 2016-08-04 16:23:36 +09:00
Campbell Barton
9c30a09048 Correct function name
Function name didn't match header (though it remains unused).
2016-07-23 11:24:31 +10:00
Campbell Barton
5cfa877449 Quiet warnings
- duplicate headers in C source & header
- use const char arg
- invalid typedef
2016-07-23 05:23:17 +10:00
Campbell Barton
8c6c57f1b4 Enable missing-declarations warning (#643)
Finish ensuring symbols use headers correctly
2016-07-22 13:38:33 +09:00
Shinya Kitaoka
2a7129aa92 use std::unique_ptr<> instead of std::auto_ptr<> (#601) 2016-07-20 21:49:32 +09:00
tomosu
8d9526db1b add doneCurrent in fx and raster code (#636) 2016-07-14 17:42:21 +09:00
Campbell Barton
87094dbf7a Correct delete[] use (#629) 2016-07-14 15:56:52 +09:00
shun-iwasawa
535d3f26d8 Merge pull request #400 from turtletooth/pixels
Add pixels - Finished.
2016-07-14 12:40:30 +09:00
Campbell Barton
ac2647b212 Avoid unnecessary vector resizing (tstring.toLower) (#614)
Directory listing compares full paths case insensitive,
this causes toLower to run a lot.

While this could be avoided entirely, at least avoid resizing the vector while lower casing strings.
2016-07-13 20:52:24 +09:00
Campbell Barton
f278fa10f0 Avoid making a copy of filepaths just to compare them (#616)
Instead compare them in-place.
2016-07-13 19:07:41 +09:00
Campbell Barton
1970953c90 Fix use-after free on render (#612) 2016-07-13 18:55:14 +09:00
Jeremy Bullock
59dbbf498a Clang formatting applied 2016-07-12 21:09:46 -06:00
Jeremy Bullock
b6ada42502 Fixed TUnit error 2016-07-12 14:52:07 -06:00
Campbell Barton
5f15dd3724 Correct define check 2016-07-09 13:56:47 +10:00
turtletooth
f8ebe3b803 Merge pull request #575 from shun-iwasawa/pencil_test_viewer
Pencil test feature
2016-07-08 09:00:24 -06:00
Shinya Kitaoka
7abdb2380a Merge pull request #547 from ideasman42/warn-undefined-pr
Quiet -Wundef warning
2016-07-06 20:42:14 +09:00
shun_iwasawa
21a6b6ba06 pencil test popup 2016-07-06 20:06:20 +09:00
Shinya Kitaoka
47895a0d7b Merge pull request #578 from opentoonz/warning-cleanup-pr
Quiet warnings
2016-07-06 19:24:49 +09:00
Shinya Kitaoka
af8faa4452 Merge pull request #558 from janisozaur/use-after-free
Prevent containerH being used after it was freed
2016-07-06 12:01:08 +09:00
shun-iwasawa
7c216ea4e6 Merge pull request #566 from opentoonz/fix-delete-pr
Correct missing [] from delete
2016-07-05 17:13:31 +09:00
Campbell Barton
e05b0bbe1c Quiet warnings 2016-07-05 14:54:52 +10:00
Shinya Kitaoka
fd19c4eedf Support Visual Studio 2015 (#544)
* Small changes, for some reason VS 2015 can't link cprintf and they added a second function std::map::count and bind couldn't resolve the function. Substituted with a lambda-expression.

* Created all 64bit version of the 3rd party libs.

* Cleanup popup opens CleanupSettings instead of CleanupSettingsPane. Not finished, panel is wrong now (also uses CleanupSettings).

* Tried to get Twain working, failed.

* When there are more then 3 peg holes create additional holes.

* When a hole touches the boundary it should still be considered a hole.

* Do not compare dot size against fixed size. Will not work in some scan resolutions. Used the same value (PERCENT * max dot size) as later in the code in compare_dots.

* When there are more than three peg holes the code looked for the best fit and used that. The problem was, that the middle hole was used as center for auto center. For three peg holes that is correct, but does not work for more than three. Now the best fit is calculated and from there the offset of the middle of the three best fit holes is calculated and applied.

* One of the last changes broke VS2015 compatibility, it chocked on a missing include.

* fix for msvs2013

* revert autopos.cpp

* apply clang-format

* use GIT-LFS
2016-07-04 17:50:30 +09:00
Jeremy Bullock
f44848c78d reverted stage::inch change, should be its own PR 2016-07-03 00:15:54 -06:00
Campbell Barton
c39a8a4b75 Correct incorrect delete 2016-07-02 22:22:01 +10:00
Jeremy Bullock
20a966a908 set stage::inch to 120 2016-06-30 23:46:29 -06:00
Jeremy Bullock
b99ed3bab6 added shun-iwasawa's suggestions 2016-06-30 21:41:31 -06:00
Michał Janiszewski
1d0596c8d8 Prevent containerH being used after it was freed 2016-06-30 17:25:47 +02:00
Michał Janiszewski
b86749e216 isnan fixes
isnan was used without specifying namespace
2016-06-30 13:42:20 +02:00
Michał Janiszewski
c8607f3d7a Fix SDL includes in tnzbase
SDL headers are installed to /usr/include/SDL2 which was in conflict
with explicit way they were included previously.
2016-06-30 10:55:55 +02:00
Campbell Barton
620578b1a0 Fix missing array specifier from delete 2016-06-30 14:37:43 +10:00
Campbell Barton
d869b5f8e6 Quiet -Wundef warning
Exposes accidental typos when checking exact values of a define.
2016-06-30 12:28:26 +10:00
Campbell Barton
1c6681c983 Merge pull request #525 from ideasman42/linux-opengl-pr
Changes needed to build OpenGL files with Linux
2016-06-30 08:25:57 +10:00
shun-iwasawa
55327d15ae Merge pull request #467 from ideasman42/linux-tsound-pr
Linux support for tsound (SDL2), from pr #51
2016-06-29 18:55:41 +09:00
Shinya Kitaoka
d1f6c4e95b REFACTORING: Add final specifiers (#537)
* add final specifiers

* apply clang-format

* fix for macOS
2016-06-29 15:17:12 +09:00
Campbell Barton
89a491484a Misc minor changes needed for building on Linux 2016-06-24 22:01:09 +10:00
Campbell Barton
301bdb149a Changes needed to build OpenGL files with Linu 2016-06-24 21:38:08 +10:00
Shinya Kitaoka
bc8b18dbfd Merge pull request #518 from ideasman42/linux-isnan-pr
Use cmath instead of defining isnan (Linux build-fix)
2016-06-24 19:47:47 +09:00
Campbell Barton
3b073728d4 Use cmath instead of defining isnan
Needed for building on Linux
2016-06-24 06:41:58 +10:00
Michał Janiszewski
7a49c6c7d4 Fix string streams 2016-06-23 20:33:47 +02:00
Campbell Barton
747d5c5395 Linux support for tfont (Qt), from pr #51 (#466)
Credit goes to François Revol for this work.
2016-06-23 19:40:37 +09:00
tomosu
00e4b3908e Merge pull request #465 from janisozaur/close-file
Pass file to be closed
2016-06-23 18:30:41 +09:00
tomosu
965183e43c Merge pull request #475 from skitaoka/refactoring/add-override
REFACTORING: add override specifiers
2016-06-23 17:03:53 +09:00
shun-iwasawa
e6d98dae08 Merge pull request #432 from walkerka/master
[Done] Brush stroke stabilizer.
2016-06-22 12:28:23 +09:00
walkerka
e1e7c459ab removed stressful assertion. 2016-06-21 19:15:55 +08:00
Shinya Kitaoka
38fd868138 apply clang-format 2016-06-20 11:34:17 +09:00
Shinya Kitaoka
473e70432a add override specifier 2016-06-20 11:34:15 +09:00