aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Tween.reel')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js
index ae8acc57..0d189fba 100644
--- a/js/panels/Timeline/Tween.reel/Tween.js
+++ b/js/panels/Timeline/Tween.reel/Tween.js
@@ -170,9 +170,26 @@ var Tween = exports.Tween = Montage.create(Component, {
170 170
171 }, 171 },
172 172
173 _initSelect:{
174 value: null
175 },
176 initSelect:{
177 serializable:true,
178 get:function () {
179 return this._initSelect;
180 },
181 set:function (newVal) {
182 this._initSelect = newVal;
183 this.tweenData.initSelect = newVal;
184 }
185 },
186
173 prepareForDraw:{ 187 prepareForDraw:{
174 value:function(){ 188 value:function(){
175 this.keyframe.selectKeyframe(); 189 if(this.initSelect){
190 this.keyframe.selectKeyframe();
191 this.initSelect = false;
192 }
176 } 193 }
177 }, 194 },
178 195
@@ -200,6 +217,7 @@ var Tween = exports.Tween = Montage.create(Component, {
200 this.tweenedProperties = this.tweenData.tweenedProperties; 217 this.tweenedProperties = this.tweenData.tweenedProperties;
201 this.isTweenAnimated = this.tweenData.isTweenAnimated; 218 this.isTweenAnimated = this.tweenData.isTweenAnimated;
202 this.easing = this.tweenData.easing; 219 this.easing = this.tweenData.easing;
220 this.initSelect = this.tweenData.initSelect;
203 this.needsDraw = true; 221 this.needsDraw = true;
204 } 222 }
205 }, 223 },