Skip to content

Commit 28b6c30

Browse files
committed
move static propertychannelmap creation after dicts defined
- otherwise will get null dictionaries in the struct
1 parent eb5074d commit 28b6c30

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Assets/FbxExporters/Editor/FbxPropertyChannelPair.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ public PropertyChannelMap(Dictionary<string,string> propertyMap, Dictionary<stri
4848
}
4949
}
5050

51-
private static PropertyChannelMap TransformPropertyMap = new PropertyChannelMap(MapTransformPropToFbxProp, MapTransformChannelToFbxChannel);
52-
private static PropertyChannelMap AimConstraintPropertyMap = new PropertyChannelMap(MapAimConstraintPropToFbxProp, MapTransformChannelToFbxChannel);
53-
private static PropertyChannelMap ColorPropertyMap = new PropertyChannelMap(MapColorPropToFbxProp, MapColorChannelToFbxChannel);
54-
private static PropertyChannelMap ConstraintSourcePropertyMap = new PropertyChannelMap(MapConstraintSourcePropToFbxProp, null);
55-
private static PropertyChannelMap ConstraintSourceTransformPropertyMap = new PropertyChannelMap(MapConstraintSourceTransformPropToFbxProp, MapTransformChannelToFbxChannel);
56-
private static PropertyChannelMap OtherPropertyMap = new PropertyChannelMap(MapPropToFbxProp, null);
57-
5851
// =========== Property Maps ================
5952
// These are dictionaries that map a Unity property name to it's corresponding Fbx property name.
6053
// Split up into multiple dictionaries as some are channel and object dependant.
@@ -147,6 +140,13 @@ public PropertyChannelMap(Dictionary<string,string> propertyMap, Dictionary<stri
147140

148141
// =======================================================
149142

143+
private static PropertyChannelMap TransformPropertyMap = new PropertyChannelMap(MapTransformPropToFbxProp, MapTransformChannelToFbxChannel);
144+
private static PropertyChannelMap AimConstraintPropertyMap = new PropertyChannelMap(MapAimConstraintPropToFbxProp, MapTransformChannelToFbxChannel);
145+
private static PropertyChannelMap ColorPropertyMap = new PropertyChannelMap(MapColorPropToFbxProp, MapColorChannelToFbxChannel);
146+
private static PropertyChannelMap ConstraintSourcePropertyMap = new PropertyChannelMap(MapConstraintSourcePropToFbxProp, null);
147+
private static PropertyChannelMap ConstraintSourceTransformPropertyMap = new PropertyChannelMap(MapConstraintSourceTransformPropToFbxProp, MapTransformChannelToFbxChannel);
148+
private static PropertyChannelMap OtherPropertyMap = new PropertyChannelMap(MapPropToFbxProp, null);
149+
150150
/// <summary>
151151
/// Separates and returns the property and channel from the full Unity property name.
152152
///

0 commit comments

Comments
 (0)