File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -734,6 +734,11 @@ void FarClipInput_OnEndEdit(string input)
734734 UpdateClippingPlanes ( ) ;
735735 }
736736
737+ public static bool IsConnectorActive ( )
738+ {
739+ return FreeCamPanel . connector != null && FreeCamPanel . connector . IsActive ;
740+ }
741+
737742 public static bool ShouldOverrideInput ( ) {
738743 return inFreeCamMode && blockGamesInputOnFreecamToggle . isOn ;
739744 }
@@ -849,17 +854,17 @@ internal void Update()
849854 FreeCamPanel . followObjectLastRotation = FreeCamPanel . followObject . transform . rotation ;
850855 }
851856
857+ if ( FreeCamPanel . lookAtObject != null && ! FreeCamPanel . IsConnectorActive ( ) )
858+ {
859+ movingTransform . LookAt ( FreeCamPanel . lookAtObject . transform ) ;
860+ }
861+
852862 UpdateRelativeMatrix ( ) ;
853863 UpdateRealCamera ( ) ;
854864
855865 FreeCamPanel . connector ? . ExecuteCameraCommand ( FreeCamPanel . GetFreecam ( ) ) ;
856866
857867 FreeCamPanel . UpdatePositionInput ( ) ;
858-
859- if ( FreeCamPanel . lookAtObject != null )
860- {
861- movingTransform . LookAt ( FreeCamPanel . lookAtObject . transform ) ;
862- }
863868 }
864869 }
865870
You can’t perform that action at this time.
0 commit comments