Commit Graph
639 Commits
Author SHA1 Message Date
itsmattkc 445d276cd0 nodes: further optimized merge node to passthrough RGB blend textures 2021-04-23 11:01:08 +10:00
itsmattkc 74ad4110be transform: hash the generated matrix
Making an exception for the transform node, we use a slightly
heavier hash to save more rendering time later.

Fixes #1560
Addresses some of #1360
2021-04-22 18:01:26 +10:00
itsmattkc 97b9bcc79f nodes: merged gizmotraverser and nodetabletraverser into nodetraverser
No real reason for these other derivatives that did virtually
the same thing.
2021-04-22 12:52:10 +10:00
itsmattkc f230bed709 sequence: allow default nodes without undo command 2021-04-22 11:50:24 +10:00
itsmattkc d4a2f1d6bc colormanager: don't list spaces if config is null 2021-04-22 11:50:24 +10:00
itsmattkc 269fa6d905 remove block enum
Replaced with dynamic casts.
2021-04-22 11:50:24 +10:00
itsmattkc 77d4b18a60 updated copyright year for 2021 [skip ci] 2021-04-17 18:56:50 +10:00
itsmattkc e410eb2aa6 nodefactory: minor code change 2021-04-17 15:13:33 +10:00
itsmattkc 8a5613bed7 nodes: improve timeremap hashing 2021-04-17 15:13:18 +10:00
itsmattkc 3ce693ac16 timeinput: add missing punctuation 2021-04-17 15:04:51 +10:00
itsmattkc 47c0282865 node: use input limiting array when hashing 2021-04-17 15:04:24 +10:00
itsmattkc 22b2d08baf rational: implement NaN mode
Also clarify code where 0 is used as a rational.
2021-04-17 15:04:03 +10:00
itsmattkc 88ebfb9d8e nodefactory: added time remap node 2021-04-17 15:02:56 +10:00
itsmattkc 98fc6d9ef1 nodes: implemented crude time remapping node
Doesn't support audio yet.
2021-04-17 15:01:28 +10:00
itsmattkc 1a848dc440 track: cache length change invalidations and release when not dragging
Not sure if this is the best solution, we'll see. Fixes issue
where cache wouldn't respond to length slider.
2021-04-17 12:50:58 +10:00
itsmattkc 9328539373 slider: reworked sliderbase and derivatives
Mostly cleaning up code, SliderBase was fairly messy.
2021-04-17 12:49:21 +10:00
itsmattkc 61efd37744 Merge branch 'rational_slider' of https://github.com/ThomasWilshaw/olive into ThomasWilshaw-rational_slider 2021-04-16 14:15:58 +10:00
itsmattkc 0d315d668a Revert "node: set ignore node when positioning and shifting recursively"
This reverts commit 6481304206.
2021-04-14 23:10:08 +10:00
ThomasWilshaw da275efdf2 Merge branch 'master' into rational_slider 2021-04-14 12:08:58 +01:00
itsmattkc c49e5ef1b3 footage: don't disable audio cache 2021-04-14 13:46:53 +10:00
itsmattkc 6481304206 node: set ignore node when positioning and shifting recursively 2021-04-14 10:13:45 +10:00
itsmattkc afed4f48d4 removed unused qfloat16 includes
Should lower our Qt minimum version requirement to 5.6
2021-04-13 23:43:56 +10:00
itsmattkc 040f065483 footage: set viewer preferences before setting filename 2021-04-13 15:42:32 +10:00
itsmattkc 76eb117a45 viewer: return null params if not in array
Suppresses warning about input array sizes.
2021-04-13 15:40:27 +10:00
itsmattkc 46e00c0099 viewer: store video/audio length outside of cache 2021-04-13 15:39:45 +10:00
itsmattkc 2ff04f2045 nodes: allow inserting inputs at arbitrary indexes 2021-04-13 13:06:52 +10:00
Simran fca485bd69 Fix plural handling for translations (#1424)
* .arg() doesn't handle plurals, replace %1 with %n and pass number to tr(), but only if there is an accompanying word for that we want singular/plural translations and only for whole numbers.

* Qt's translation methods only accept integers and we don't know what grammatical number form would be correct for floating-point numbers in different languages anyway.

* Add optional 2nd argument to SliderBase::SetFormat() to activate deferred plural handling:
  SetFormat(QT_TRANSLATE_N_NOOP("olive::SliderBase", "%n unit(s)"), true)

* Generate en_US.ts with lupdate's -pluralonly option. Only source strings that require plural handling need to be translated (as long as the source language is American English).
2021-04-13 00:58:46 +02:00
itsmattkc c03c197412 added ability to open viewers on any viewer node or derivative
Fixes #1362

Also fixes some other bugs that impeded this from working.
2021-04-12 22:58:34 +10:00
ThomasWilshaw ecce4d1ae2 Merge branch 'master' into rational_slider 2021-04-12 10:42:26 +01:00
itsmattkc 893adc3d72 implemented value node
Also implements changes necessary to support an input data type
that changes. Much of that foundation was built in
`nodearchchanges`, but hadn't been finalized. This commit
finalizes and provides a reference implementation/test with the
"Value" node.

Fixes #1443
2021-04-12 16:37:26 +10:00
itsmattkc 7701e9331f block: reimplemented reversing 2021-04-12 11:05:45 +10:00
itsmattkc da9cdbd29e block: disable connecting and keyframing speed parameter
We're going to replace keyframing this with a time remap node
because that will be much simpler to implement.

Fixes #1192.
Fixes #1204.
2021-04-12 10:35:02 +10:00
itsmattkc 46ee99264d footage: fixed crash with audio-only files 2021-04-12 09:48:08 +10:00
itsmattkc 515d459d36 nodeparamview: make keyframes on every key track by default
Fixes #1437
2021-04-11 19:38:29 +10:00
itsmattkc afedea7342 restore old node positioning code
New code didn't work.
2021-04-11 18:57:42 +10:00
itsmattkc a87adbd801 fixed precache task
Fixes #1558
2021-04-11 18:57:21 +10:00
itsmattkc 6c30f8cf46 nodes: implemented infrastructure for caching any node
Not accessible through UI yet, but ported Footage node to it
(previously we used a hack to ensure Footage textures were
cached, now it's a formal infrastructure).
2021-04-11 18:56:39 +10:00
itsmattkc 210eb86cd2 nodes: fixed hashing issues 2021-04-11 18:54:22 +10:00
itsmattkc f9b60538fc project: removed footage comparison code that had been stubbed anyway 2021-04-11 18:52:12 +10:00
itsmattkc e89e348f6e nodegraph: delete nodes bottom to top when clearing 2021-04-11 12:59:25 +10:00
itsmattkc 700b56d43f node: limit bounding rect when detecting node collisions
Hopefully prevents the possibility of an infinite loop.
2021-04-11 12:20:50 +10:00
itsmattkc b161ff710d project: fix bug disconnecting folders 2021-04-10 13:22:26 +10:00
Thomas Wilshaw cb0cfebf40 Fix clamping bug, 2021-04-09 11:57:49 +01:00
Simran 58c2092153 Add missing Q_OBJECT macro to CropDistortNode 2021-04-08 11:08:19 +02:00
itsmattkc f03052ee74 remove superfluous semicolon 2021-04-08 19:05:52 +10:00
itsmattkc db3644e2f8 actually commit override color get function 2021-04-08 19:05:39 +10:00
itsmattkc 5b0332260f revise operation cache blocking system
Fixes #1553
2021-04-08 19:05:12 +10:00
itsmattkc ba0eb2335b copy color when duplicating node 2021-04-08 18:03:59 +10:00
itsmattkc cb75e37e77 moved several files around
Mostly moved classes that became node derivatives into the node/ folder.
2021-04-08 12:15:59 +10:00
itsmattkc 2dc27de37c ensure frame rate and sample rate changes ripple through widgets 2021-04-08 10:44:32 +10:00