@@ -82,7 +82,7 @@ enum AdjustmentType
8282 AdjustmentType adjType = AdjustmentType . translation ;
8383 string adjTypeStr = "Translation" ;
8484 public float offset = 0.01f ;
85- public float rotation = 1.0f ;
85+ public float rotationZZ = 1.0f ;
8686 public int offsetDeltaIndex = 2 ;
8787 public int rotationdeltaIndex = 0 ;
8888
@@ -205,9 +205,9 @@ void WindowContent (int windowID)
205205 if ( GUILayout . Button ( "-" , GUILayout . Width ( 20 ) ) ) {
206206 switch ( adjType ) {
207207 case AdjustmentType . rotation :
208- rotation -= getDelta ( rotationdeltaIndex ) ;
209- if ( rotation <= 0.0f )
210- rotation = getDelta ( rotationdeltaIndex ) ;
208+ rotationZZ -= getDelta ( rotationdeltaIndex ) ;
209+ if ( rotationZZ <= 0.0f )
210+ rotationZZ = getDelta ( rotationdeltaIndex ) ;
211211
212212 break ;
213213 case AdjustmentType . translation :
@@ -220,7 +220,7 @@ void WindowContent (int windowID)
220220 }
221221 switch ( adjType ) {
222222 case AdjustmentType . rotation :
223- GUILayout . Label ( rotation . ToString ( ) , "TextField" ) ;
223+ GUILayout . Label ( rotationZZ . ToString ( ) , "TextField" ) ;
224224 break ;
225225 case AdjustmentType . translation :
226226 GUILayout . Label ( offset . ToString ( ) , "TextField" ) ;
@@ -230,7 +230,7 @@ void WindowContent (int windowID)
230230 if ( GUILayout . Button ( "+" , GUILayout . Width ( 20 ) ) ) {
231231 switch ( adjType ) {
232232 case AdjustmentType . rotation :
233- rotation += getDelta ( rotationdeltaIndex ) ;
233+ rotationZZ += getDelta ( rotationdeltaIndex ) ;
234234 break ;
235235 case AdjustmentType . translation :
236236 offset += getDelta ( offsetDeltaIndex ) ;
0 commit comments