Skip to content

Commit

Permalink
Keep showing property with no key frames
Browse files Browse the repository at this point in the history
  • Loading branch information
thorikawa committed Sep 21, 2015
1 parent a0cbf39 commit baea2b2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/scripts/TweenTime.Core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/scripts/TweenTime.Core.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/scripts/TweenTime.Editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scripts/TweenTime.Editor.min.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"val": 1,
"min": 0,
"max": 1
},
{
"name": 'dummy',
"keys": [],
"val": 0
}
]
}
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/graph/Properties.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ export default class Properties {

var propVal = function(d) {
if (d.properties) {
return d.properties.filter((prop) => {return prop.keys.length;});
// Updated: keep property with no key frames
// return d.properties.filter((prop) => {return prop.keys.length;});
return d.properties;
} else {
return [];
}
Expand Down

0 comments on commit baea2b2

Please sign in to comment.