File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Assets/FbxExporters/Editor/UnitTests Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,12 @@ namespace FbxExporters.UnitTests
12
12
13
13
public class AnimationTestDataClass
14
14
{
15
- public static IEnumerable < string > m_transformPropertyNames { get {
16
- var goAnim = new GameObject ( ) ;
17
- return ( from b in AnimationUtility . GetAnimatableBindings ( goAnim , goAnim ) select b . propertyName ) ;
18
- } }
19
-
20
15
// TODO: remove items that become supported by exporter
21
16
public static IEnumerable < System . Type > m_exceptionTypes = new List < System . Type > ( )
22
17
{
23
18
typeof ( MeshFilter ) ,
24
19
typeof ( SkinnedMeshRenderer ) ,
25
- typeof ( Camera ) ,
20
+ typeof ( Camera ) , // TODO: uncomment this to add unit tests
26
21
typeof ( Transform ) , // NOTE: has it's own special tests
27
22
} ;
28
23
@@ -325,7 +320,7 @@ public int ComponentSingleAnimTest (System.Type componentType)
325
320
326
321
string [ ] propertyNames =
327
322
( from b in AnimationUtility . GetAnimatableBindings ( targetObject , targetObject )
328
- select b . propertyName ) . Except ( AnimationTestDataClass . m_transformPropertyNames ) . ToArray ( ) ;
323
+ where b . type == componentType select b . propertyName ) . ToArray ( ) ;
329
324
330
325
if ( propertyNames . Length == 0 )
331
326
{
You can’t perform that action at this time.
0 commit comments