mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 19:12:28 +02:00
Fix equality in scriptableResource/lib
This commit is contained in:
parent
854c0ea3e3
commit
29e0744b89
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ function getFrame(callback) {
|
|||
var FRAME_URL = "http://hifi-production.s3.amazonaws.com/tutorials/pictureFrame/finalFrame.fbx";
|
||||
|
||||
var model = ModelCache.prefetch(FRAME_URL);
|
||||
if (model.state = Resource.State.FINISHED) {
|
||||
if (model.state === Resource.State.FINISHED) {
|
||||
makeFrame(Resource.State.FINISHED);
|
||||
} else {
|
||||
model.stateChanged.connect(makeFrame);
|
||||
|
|
Loading…
Reference in a new issue