Handle GetAngle axis more gracefully too

pull/541/head
Alexei Dobrohotov 6 years ago committed by GitHub
parent 6aef52931f
commit 4f74d09179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -162,8 +162,6 @@ namespace MWScript
{ {
runtime.push(osg::RadiansToDegrees(ptr.getRefData().getPosition().rot[2])); runtime.push(osg::RadiansToDegrees(ptr.getRefData().getPosition().rot[2]));
} }
else
throw std::runtime_error ("invalid rotation axis: " + axis);
} }
}; };

Loading…
Cancel
Save