From b731a981c4267929f2e0fdf055bb1a3e1f27c6a6 Mon Sep 17 00:00:00 2001 From: elsid Date: Sat, 30 Oct 2021 03:41:19 +0200 Subject: [PATCH] Make BulletShape::isAnimated inlined --- components/resource/bulletshape.cpp | 5 ----- components/resource/bulletshape.hpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components/resource/bulletshape.cpp b/components/resource/bulletshape.cpp index 1d4be1d14d..52d639d272 100644 --- a/components/resource/bulletshape.cpp +++ b/components/resource/bulletshape.cpp @@ -84,11 +84,6 @@ void BulletShape::setLocalScaling(const btVector3& scale) mAvoidCollisionShape->setLocalScaling(scale); } -bool BulletShape::isAnimated() const -{ - return !mAnimatedShapes.empty(); -} - osg::ref_ptr makeInstance(osg::ref_ptr source) { return {new BulletShapeInstance(std::move(source))}; diff --git a/components/resource/bulletshape.hpp b/components/resource/bulletshape.hpp index 1065f3893b..7188165045 100644 --- a/components/resource/bulletshape.hpp +++ b/components/resource/bulletshape.hpp @@ -49,7 +49,7 @@ namespace Resource void setLocalScaling(const btVector3& scale); - bool isAnimated() const; + bool isAnimated() const { return !mAnimatedShapes.empty(); } };