File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,11 @@ public static string GetTempSavePath()
254
254
return FbxExporters . Review . TurnTable . TempSavePath . Replace ( "\\ " , "/" ) ;
255
255
}
256
256
257
+ /// <summary>
258
+ /// Gets the maya instruction path relative to the Assets folder.
259
+ /// Assets folder is not included in the path.
260
+ /// </summary>
261
+ /// <returns>The relative maya instruction path.</returns>
257
262
public static string GetMayaInstructionPath ( )
258
263
{
259
264
return MAYA_INSTRUCTION_FILENAME ;
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ private static Bounds GetRendererBounds(GameObject modelGO)
138
138
139
139
private static void FrameCameraOnModel ( GameObject modelGO )
140
140
{
141
- if ( modelGO == null ) {
141
+ if ( ! modelGO ) {
142
142
return ;
143
143
}
144
144
@@ -175,11 +175,11 @@ private static void LoadLastSavedModel ()
175
175
}
176
176
177
177
// focus onto model
178
- if ( LastModel != null ) {
178
+ if ( LastModel ) {
179
179
var model = LastModel as GameObject ;
180
- if ( model != null ) {
180
+ if ( model ) {
181
181
var turntable = model . transform . parent ;
182
- if ( turntable != null ) {
182
+ if ( turntable ) {
183
183
var turntableGO = turntable . gameObject ;
184
184
UnityEditor . Selection . objects = new GameObject [ ] { turntableGO } ;
185
185
FrameCameraOnModel ( turntableGO ) ;
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ public void BasicTest() {
49
49
LogNonEmptyString ( "package version" , Editor . Integrations . GetPackageVersion ( ) ) ;
50
50
LogNonEmptyString ( "temp path" , Editor . Integrations . GetTempSavePath ( ) ) ;
51
51
LogNonEmptyString ( "export settings path" , Editor . Integrations . GetExportSettingsPath ( ) ) ;
52
+ LogNonEmptyString ( "instruction path" , Editor . Integrations . GetMayaInstructionPath ( ) ) ;
53
+ LogNonEmptyString ( "full instruction path" , Editor . Integrations . GetFullMayaInstructionPath ( ) ) ;
52
54
53
55
// test that the paths don't contain backslashes
54
56
Assert . IsFalse ( Editor . Integrations . GetAppPath ( ) . Contains ( "\\ " ) ) ;
You can’t perform that action at this time.
0 commit comments