mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cocos2dx] Closes #1733, missing JS bindings.
This commit is contained in:
parent
1662ebea4f
commit
0a42f4fe28
@ -851,7 +851,7 @@ bool SkeletonRenderer::getDebugBoundingRectEnabled() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SkeletonRenderer::onEnter () {
|
void SkeletonRenderer::onEnter () {
|
||||||
#if CC_ENABLE_SCRIPT_BINDING
|
#if CC_ENABLE_SCRIPT_BINDING && COCOS2D_VERSION < 0x00040000
|
||||||
if (_scriptType == kScriptTypeJavascript && ScriptEngineManager::sendNodeEventToJSExtended(this, kNodeOnEnter)) return;
|
if (_scriptType == kScriptTypeJavascript && ScriptEngineManager::sendNodeEventToJSExtended(this, kNodeOnEnter)) return;
|
||||||
#endif
|
#endif
|
||||||
Node::onEnter();
|
Node::onEnter();
|
||||||
@ -859,7 +859,7 @@ void SkeletonRenderer::onEnter () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SkeletonRenderer::onExit () {
|
void SkeletonRenderer::onExit () {
|
||||||
#if CC_ENABLE_SCRIPT_BINDING
|
#if CC_ENABLE_SCRIPT_BINDING && COCOS2D_VERSION < 0x00040000
|
||||||
if (_scriptType == kScriptTypeJavascript && ScriptEngineManager::sendNodeEventToJSExtended(this, kNodeOnExit)) return;
|
if (_scriptType == kScriptTypeJavascript && ScriptEngineManager::sendNodeEventToJSExtended(this, kNodeOnExit)) return;
|
||||||
#endif
|
#endif
|
||||||
Node::onExit();
|
Node::onExit();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user