Adapt to the parser rework
This commit is contained in:
parent
bfc3f53447
commit
784d1a3971
1 changed files with 3 additions and 5 deletions
|
|
@ -32,13 +32,11 @@ Curve Curve::buildCurveFromHeader(
|
||||||
setPoint(NumValues - 1, 1.0);
|
setPoint(NumValues - 1, 1.0);
|
||||||
|
|
||||||
for (const Opcode& opc : members) {
|
for (const Opcode& opc : members) {
|
||||||
unsigned index;
|
if (opc.lettersOnlyHash != hash("v&"))
|
||||||
|
|
||||||
if (opc.lettersOnlyHash != hash("v"))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto indexOpt = opc.backParameter();
|
unsigned index = opc.parameters.back();
|
||||||
if (!indexOpt || (index = *indexOpt) >= NumValues)
|
if (index >= NumValues)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
auto valueOpt = readOpcode<float>(opc.value, fullRange);
|
auto valueOpt = readOpcode<float>(opc.value, fullRange);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue