add MeshRoadEditorGui::onRoadCreation callback

use it, and the RoadEditorGui::onRoadCreation one to assign default road matrials on initial creation
This commit is contained in:
AzaezelX 2022-11-14 21:30:13 -06:00
parent 97eaab3f49
commit 15d5aafadb
3 changed files with 12 additions and 0 deletions

View file

@ -677,6 +677,10 @@ void GuiMeshRoadEditorCtrl::on3DMouseDown(const Gui3DMouseEvent & event)
// Submit it.
undoMan->addAction( action );
//send a callback to script after were done here if one exists
if (isMethod("onRoadCreation"))
Con::executef(this, "onRoadCreation");
return;
}
else if ( mMode == mAddNodeMode )