fix bug of shell having a copy of engine instead of reference
This commit is contained in:
parent
d8f52277ed
commit
f2ecf2b9cc
@ -40,7 +40,7 @@ ScriptNode::ScriptNode()
|
|||||||
void ScriptNode::update(){
|
void ScriptNode::update(){
|
||||||
static bool test = true;
|
static bool test = true;
|
||||||
if(test && getScene() != nullptr){
|
if(test && getScene() != nullptr){
|
||||||
m_script["engine"] = getEngine();
|
m_script["engine"] = &getEngine();
|
||||||
test=false;
|
test=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user