Skip to content

Commit 41e6c0d

Browse files
committed
Merge pull request #1408 from VisualSJ/develop-test
studio parser‘s issue - loadingBar direction
2 parents 214548a + 1ee1646 commit 41e6c0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frameworks/js-bindings/bindings/script/studio/parsers/timelineParser-2.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@
766766
widget.loadTexture(path, type);
767767
});
768768

769-
var direction = json["ProgressType"];
770-
widget.setDirection((direction != "Left_To_Right") | 0);
769+
var direction = json["ProgressType"] === "Right_To_Left" ? 1 : 0;
770+
widget.setDirection(direction);
771771

772772
var percent = getParam(json["ProgressInfo"], 80);
773773
if(percent != null)

0 commit comments

Comments
 (0)