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);
|
||||
|
||||
for (const Opcode& opc : members) {
|
||||
unsigned index;
|
||||
|
||||
if (opc.lettersOnlyHash != hash("v"))
|
||||
if (opc.lettersOnlyHash != hash("v&"))
|
||||
continue;
|
||||
|
||||
auto indexOpt = opc.backParameter();
|
||||
if (!indexOpt || (index = *indexOpt) >= NumValues)
|
||||
unsigned index = opc.parameters.back();
|
||||
if (index >= NumValues)
|
||||
continue;
|
||||
|
||||
auto valueOpt = readOpcode<float>(opc.value, fullRange);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue