-
Notifications
You must be signed in to change notification settings - Fork 933
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
Copy transformations data when we clone node #2529
Conversation
As mentioned in the issue report, I've opened a thread on the OSG forum to check if the |
Well, Robert replied - current OSG behaviour is a bug. |
A compromise: keep a workaround now, add a comment that it should be removed after the minimum OSG version is increased to whatever version the bug is fixed in, ???, profit. |
I'd rather fence off the workaround behind an |
So the 3.6.5 already has the patch for this issue, or at least we know that 3.6.5 certainly will have the fix? |
Robert's said he'll accept a PR for it, so unless 3.6.5 is released before he gets back to me about my follow up questions, it'll have the fix. |
A half of year has passed, and there is still no difference. |
Fence off for 3.6.6 with additional comment to check that it indeed go into 3.6.6? |
I suppose that the non-existent patch should really get into the 3.6.6 first, and only then the version check can be added. |
Using a workaround for now since OSG devs treat existing behaviour as intended. |
Fixes bug #5163.
In the master branch we do not copy NodeUserData when we make a copy of node (despite we are supposed to do it by design), so userdata nodes are shared and animation transformations can affect all instances of given node.
So the suggested solution is to copy NodeUserData as well.
Notes:
osg::CopyOp::DEEP_COPY_OBJECTS
, but in this case we will copy everything that is derived fromosg::Object