mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #630 from jwu/v1.0
make tiling and offset properties serializable
This commit is contained in:
@@ -45,8 +45,6 @@ var SpriteDistortion = cc.Class({
|
||||
},
|
||||
|
||||
ctor: function() {
|
||||
this._distortionOffset = cc.v2(0.0,0.0);
|
||||
this._distortionTiling = cc.v2(1.0,1.0);
|
||||
this._spriteSGNode = null;
|
||||
},
|
||||
|
||||
@@ -59,6 +57,7 @@ var SpriteDistortion = cc.Class({
|
||||
* @example
|
||||
* distortion.offset = new cc.Vec2(0.5, 0.3);;
|
||||
*/
|
||||
_distortionOffset: cc.v2(0.0,0.0),
|
||||
offset: {
|
||||
get: function() {
|
||||
return this._distortionOffset;
|
||||
@@ -77,6 +76,7 @@ var SpriteDistortion = cc.Class({
|
||||
* @example
|
||||
* distortion.tiling = new cc.Vec2(0.5, 0.3);;
|
||||
*/
|
||||
_distortionTiling: cc.v2(1.0,1.0),
|
||||
tiling: {
|
||||
get: function() {
|
||||
return this._distortionTiling;
|
||||
|
||||
Reference in New Issue
Block a user