diff --git a/cocos/3d/CCSprite3D.h b/cocos/3d/CCSprite3D.h index a9853573bc..b2567b5374 100644 --- a/cocos/3d/CCSprite3D.h +++ b/cocos/3d/CCSprite3D.h @@ -165,7 +165,7 @@ CC_CONSTRUCTOR_ACCESS: Sprite3D(); virtual ~Sprite3D(); - bool init() override; + virtual bool init() override; bool initWithFile(const std::string &path); diff --git a/cocos/editor-support/cocostudio/CCArmatureAnimation.h b/cocos/editor-support/cocostudio/CCArmatureAnimation.h index 7e72aeda0a..62146793a1 100644 --- a/cocos/editor-support/cocostudio/CCArmatureAnimation.h +++ b/cocos/editor-support/cocostudio/CCArmatureAnimation.h @@ -173,7 +173,7 @@ public: */ ssize_t getMovementCount() const; - void update(float dt) override; + virtual void update(float dt) override; /** * Get current movementID