You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGES.md
+7
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
Change Log
2
2
==========
3
+
### 1.38 - 2017-10-02
4
+
5
+
* Added ability to add an animation to `ModelAnimationCollection` by its index. [#5815](https://github.com/AnalyticalGraphicsInc/cesium/pull/5815)
6
+
* Fixed a bug in `ModelAnimationCollection` that caused adding an animation by its name to throw an error. [#5815](https://github.com/AnalyticalGraphicsInc/cesium/pull/5815)
7
+
* Zoom about mouse now maintains camera heading, pitch, and roll [#4639](https://github.com/AnalyticalGraphicsInc/cesium/pull/5603)
8
+
3
9
### 1.37 - 2017-09-01
4
10
5
11
* Breaking changes
@@ -24,6 +30,7 @@ Change Log
24
30
* Fixed loading of binary glTFs containing CRN or KTX textures. [#5753](https://github.com/AnalyticalGraphicsInc/cesium/pull/5753)
25
31
* Fixed specular computation for certain models using the `KHR_materials_common` extension. [#5773](https://github.com/AnalyticalGraphicsInc/cesium/pull/5773)
26
32
* Fixed a picking bug in the `3D Tiles Interactivity` Sandcastle demo. [#5703](https://github.com/AnalyticalGraphicsInc/cesium/issues/5703)
33
+
* Updated knockout from 3.4.0 to 3.4.2 [#5703](https://github.com/AnalyticalGraphicsInc/cesium/pull/5829)
> (c) The Knockout.js team - http://knockoutjs.com/
360
360
> License: MIT (http://www.opensource.org/licenses/mit-license.php)
361
361
>
362
362
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* Creates and adds an animation with the specified initial properties to the collection.
87
97
* <p>
88
98
* This raises the {@link ModelAnimationCollection#animationAdded} event so, for example, a UI can stay in sync.
89
99
* </p>
90
100
*
91
101
* @param {Object} options Object with the following properties:
92
-
* @param {String} options.name The glTF animation name that identifies the animation.
102
+
* @param {String} [options.name] The glTF animation name that identifies the animation. Must be defined if <code>options.id</code> is <code>undefined</code>.
103
+
* @param {Number} [options.index] The glTF animation index that identifies the animation. Must be defined if <code>options.name</code> is <code>undefined</code>.
93
104
* @param {JulianDate} [options.startTime] The scene time to start playing the animation. When this is <code>undefined</code>, the animation starts at the next frame.
94
105
* @param {Number} [options.delay=0.0] The delay, in seconds, from <code>startTime</code> to start playing.
95
106
* @param {JulianDate} [options.stopTime] The scene time to stop playing the animation. When this is <code>undefined</code>, the animation is played for its full duration.
@@ -101,16 +112,23 @@ define([
101
112
*
102
113
* @exception {DeveloperError} Animations are not loaded. Wait for the {@link Model#readyPromise} to resolve.
103
114
* @exception {DeveloperError} options.name must be a valid animation name.
115
+
* @exception {DeveloperError} options.index must be a valid animation index.
116
+
* @exception {DeveloperError} Either options.name or options.index must be defined.
104
117
* @exception {DeveloperError} options.speedup must be greater than zero.
105
118
*
106
119
* @example
107
-
* // Example 1. Add an animation
120
+
* // Example 1. Add an animation by name
108
121
* model.activeAnimations.add({
109
122
* name : 'animation name'
110
123
* });
111
124
*
125
+
* // Example 2. Add an animation by index
126
+
* model.activeAnimations.add({
127
+
* index : 0
128
+
* });
129
+
*
112
130
* @example
113
-
* // Example 2. Add an animation and provide all properties and events
131
+
* // Example 3. Add an animation and provide all properties and events
114
132
* var startTime = Cesium.JulianDate.now();
115
133
*
116
134
* var animation = model.activeAnimations.add({
@@ -144,24 +162,38 @@ define([
144
162
if(!defined(animations)){
145
163
thrownewDeveloperError('Animations are not loaded. Wait for Model.readyPromise to resolve.');
0 commit comments