diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-03 18:50:04 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-03 18:50:04 +0200 |
| commit | b7cc5efa244681727668b28ffb8d0eb3d4b95fb7 (patch) | |
| tree | 6d453acc967c1087c9fa3d7d441feb4fb396acaa /objects.js | |
| parent | 0333925e916acc47c25cdcfec0c3be3d695a825f (diff) | |
| download | snap-b7cc5efa244681727668b28ffb8d0eb3d4b95fb7.tar.gz snap-b7cc5efa244681727668b28ffb8d0eb3d4b95fb7.zip | |
don't allow sprites to be called mouse-pointer (fix #71)issue_71
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1398,8 +1398,11 @@ SpriteMorph.prototype.appearIn = function (ide) { // SpriteMorph versioning SpriteMorph.prototype.setName = function (string) { - this.name = string || this.name; - this.version = Date.now(); + if (string != 'mouse-pointer' && string != 'pen trails' + && string != 'edge') { // used by system + this.name = string || this.name; + this.version = Date.now(); + } }; // SpriteMorph rendering |
