diff --git a/components/nif/property.cpp b/components/nif/property.cpp index 2dd47e2e01..bb2a01e2dc 100644 --- a/components/nif/property.cpp +++ b/components/nif/property.cpp @@ -176,7 +176,7 @@ namespace Nif nif->read(mExposureOffset); nif->read(mFinalExposureMin); nif->read(mFinalExposureMax); - }; + } void BSSPWetnessParams::read(NIFStream* nif) { @@ -191,7 +191,7 @@ namespace Nif nif->skip(4); // Unknown if (nif->getBethVersion() >= NIFFile::BethVersion::BETHVER_F76) nif->skip(4); // Unknown - }; + } void BSSPMLParallaxParams::read(NIFStream* nif) { @@ -199,7 +199,7 @@ namespace Nif nif->read(mRefractionScale); nif->read(mInnerLayerTextureScale); nif->read(mEnvMapScale); - }; + } void BSSPTranslucencyParams::read(NIFStream* nif) { @@ -208,7 +208,7 @@ namespace Nif nif->read(mTurbulence); nif->read(mThickObject); nif->read(mMixAlbedo); - }; + } void BSLightingShaderProperty::read(NIFStream* nif) { @@ -502,7 +502,7 @@ namespace Nif { nif->read(mFlags); mEnabled = mFlags & 0x1; - mFailAction = static_cast((mFlags>> 1) & 0x7); + mFailAction = static_cast((mFlags >> 1) & 0x7); mZFailAction = static_cast((mFlags >> 4) & 0x7); mPassAction = static_cast((mFlags >> 7) & 0x7); mDrawMode = static_cast((mFlags >> 10) & 0x3); diff --git a/components/nifosg/nifloader.cpp b/components/nifosg/nifloader.cpp index f184f49625..7498c1cf46 100644 --- a/components/nifosg/nifloader.cpp +++ b/components/nifosg/nifloader.cpp @@ -1008,8 +1008,9 @@ namespace NifOsg } } - void handleTextureControllers(const Nif::NiProperty* texProperty, SceneUtil::CompositeStateSetUpdater* composite, - Resource::ImageManager* imageManager, osg::StateSet* stateset, int animflags) + void handleTextureControllers(const Nif::NiProperty* texProperty, + SceneUtil::CompositeStateSetUpdater* composite, Resource::ImageManager* imageManager, + osg::StateSet* stateset, int animflags) { for (Nif::NiTimeControllerPtr ctrl = texProperty->mController; !ctrl.empty(); ctrl = ctrl->mNext) { @@ -1638,7 +1639,8 @@ namespace NifOsg case TestFunc::Always: return osg::Stencil::ALWAYS; default: - Log(Debug::Info) << "Unexpected stencil function: " << static_cast(func) << " in " << mFilename; + Log(Debug::Info) << "Unexpected stencil function: " << static_cast(func) << " in " + << mFilename; return osg::Stencil::NEVER; } } @@ -1661,7 +1663,8 @@ namespace NifOsg case Action::Invert: return osg::Stencil::INVERT; default: - Log(Debug::Info) << "Unexpected stencil operation: " << static_cast(op) << " in " << mFilename; + Log(Debug::Info) << "Unexpected stencil operation: " << static_cast(op) << " in " + << mFilename; return osg::Stencil::KEEP; } } @@ -2144,8 +2147,8 @@ namespace NifOsg { mHasStencilProperty = true; osg::ref_ptr stencil = new osg::Stencil; - stencil->setFunction(getStencilFunction(stencilprop->mTestFunction), - stencilprop->mStencilRef, stencilprop->mStencilMask); + stencil->setFunction(getStencilFunction(stencilprop->mTestFunction), stencilprop->mStencilRef, + stencilprop->mStencilMask); stencil->setStencilFailOperation(getStencilOperation(stencilprop->mFailAction)); stencil->setStencilPassAndDepthFailOperation(getStencilOperation(stencilprop->mZFailAction)); stencil->setStencilPassAndDepthPassOperation(getStencilOperation(stencilprop->mPassAction)); @@ -2407,8 +2410,7 @@ namespace NifOsg { const Nif::NiMaterialProperty* matprop = static_cast(property); - mat->setDiffuse( - osg::Material::FRONT_AND_BACK, osg::Vec4f(matprop->mDiffuse, matprop->mAlpha)); + mat->setDiffuse(osg::Material::FRONT_AND_BACK, osg::Vec4f(matprop->mDiffuse, matprop->mAlpha)); mat->setAmbient(osg::Material::FRONT_AND_BACK, osg::Vec4f(matprop->mAmbient, 1.f)); mat->setEmission(osg::Material::FRONT_AND_BACK, osg::Vec4f(matprop->mEmissive, 1.f)); emissiveMult = matprop->mEmissiveMult;