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

clone.cpp remove dynamic_cast #3097

Merged
merged 1 commit into from
Sep 9, 2021
Merged

Conversation

bosvensson1
Copy link
Contributor

While reviewing groundcover cloning I may have found a superfluous operation. osgAnimation Bone and Skeleton derive from osg Node and respect the DEEP_COPY_NODES copy flags we use. Therefore the nodes should be cloned in the same way without this special case. Somehow I have no osgAnimation nodes in my game files and cannot test. Perhaps author @unelsson can chime in if I am on the right track.

@psi29a
Copy link
Member

psi29a commented Sep 9, 2021

@unelsson gave his blessing
Great work :)

@psi29a psi29a merged commit afba188 into OpenMW:master Sep 9, 2021
@akortunov
Copy link
Collaborator

Somehow I have no osgAnimation nodes in my game files and cannot test.

IIRC, osgAnimation is used only for Collada files.

@psi29a
Copy link
Member

psi29a commented Sep 10, 2021

Somehow I have no osgAnimation nodes in my game files and cannot test.

IIRC, osgAnimation is used only for Collada files.

Yeah, that's why I had @unelsson have a look.

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