mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
add MeshRoadEditorGui::onRoadCreation callback
use it, and the RoadEditorGui::onRoadCreation one to assign default road matrials on initial creation
This commit is contained in:
parent
97eaab3f49
commit
15d5aafadb
3 changed files with 12 additions and 0 deletions
|
|
@ -79,6 +79,7 @@ function RoadEditorGui::onEscapePressed( %this )
|
|||
//just in case we need it later
|
||||
function RoadEditorGui::onRoadCreation( %this )
|
||||
{
|
||||
%this.road.MaterialAsset = "Core_GameObjects:DefaultDecalRoadMaterial";
|
||||
}
|
||||
|
||||
function RoadEditorGui::onRoadSelected( %this, %road )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue