Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicating Houdini Spline Component Behavior? #15

Open
cort-gunfiregames opened this issue May 26, 2020 · 1 comment
Open

Duplicating Houdini Spline Component Behavior? #15

cort-gunfiregames opened this issue May 26, 2020 · 1 comment

Comments

@cort-gunfiregames
Copy link
Collaborator

What is the intended behavior when duplicating a HDA instance that utilizes a spline?

The issue I am looking at right now is that when duplicated the HDA spline component will revert to the default curve points of the HDA, vs being a copy of the current instances points.
In this specific case the cause appears to be coming from FHoudiniSplineTranslator::UpdateHoudiniCurve. It grabs the original curve points, and as long as these original curve points are greater than the number of current curve points, thus it erases the current instance points, and re-adds the default points. In our HDA example the default curve contains 8 points, but most instances only utilize 4 points.

So overall what is the expected behavior in this case of duplicating a HDA utilizing a spline?

@dpernuit
Copy link
Contributor

Hi Cort,

I'm assuming you're using editable curve nodes, and not curve inputs, as I couldn't reproduce that issue with curve inputs.

It is a bug, duplicating an HDA should keep the modified curve points and not reset them to their default values. We'll try to fix that for the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants