Skip to content

Fix crash in Spline Width and return of improper type in Spline converters - #1890

Merged
ice0 merged 2 commits into
synfig:masterfrom
Svarov-RZM:master
Dec 9, 2020
Merged

ice0 merged 2 commits into
synfig:masterfrom
Svarov-RZM:master

Conversation

@Svarov-RZM

Copy link
Copy Markdown
Contributor

Fix #1731
This is the final part. Feel free to close the linked issue after merging.

The pull request contains two commits:

  • First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
  • Second addresses the regression introduced in this commit: a90d014
    It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.

@ice0
ice0 merged commit 9b580c6 into synfig:master Dec 9, 2020
@ice0

ice0 commented Dec 9, 2020

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@morevnaproject

Copy link
Copy Markdown
Member

I discovered that for some reason this PR was not backported to 1.4.1. Adding it for backporting to 1.4.2...

rodolforg pushed a commit to rodolforg/synfig that referenced this pull request May 16, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
rodolforg pushed a commit to rodolforg/synfig that referenced this pull request May 25, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
rodolforg pushed a commit to rodolforg/synfig that referenced this pull request May 26, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
rodolforg pushed a commit to rodolforg/synfig that referenced this pull request May 27, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
morevnaproject pushed a commit that referenced this pull request Jul 12, 2021
…rters (PR #1890)

Fix #1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
morevnaproject pushed a commit to morevnaproject/synfig that referenced this pull request Aug 9, 2021
…rters (PR synfig#1890)

Fix synfig#1731

The pull request contains two commits:

First fixes crash in 'Spline Width' converter when you try to wrap it in 'Switch'. Similar to previously addressed in 'Spline Vertex' and 'Spline Tangent' converters.
Second addresses the regression introduced in this commit: a90d014
It was no longer possible to convert real values to 'Spline Tangent/Width' and angle to 'Spline Tangent'. The reason is that upon creation of converter the size of spline would be zero and code will always return ValueBase of vector type so 'Bad Connection' error would be thrown (expected real, got vector). See linked issue for screenshot of the error.
@rodolforg rodolforg added Crash and removed Backport labels Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when adding converters to 'list' type (splines)

4 participants