Explorar o código

Enable onMouseMove script method for GameTSCtrl

Enables the onMouseMove method for scripting in the GameTSCtrl class.
Olathuss hai 7 meses
pai
achega
59b938151d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Engine/source/T3D/gameTSCtrl.cpp

+ 2 - 0
Engine/source/T3D/gameTSCtrl.cpp

@@ -158,6 +158,8 @@ void GameTSCtrl::onMouseMove(const GuiEvent &evt)
          lineTestEnd = pos + vec * 1000;
       }
    }
+   if (isMethod("onMouseMove"))
+      makeScriptCall("onMouseMove", evt);
 }
 
 void GameTSCtrl::onRender(Point2I offset, const RectI &updateRect)