1 Year Ago
Hook up the CMapView's CToolCamera so we can have the camera pos/angles and able to build rays from 2d coords Hammer traces return their hit MapNode by managed handle so can do `if ( tr.MapNode is MapMesh mesh )` now Add MapMesh.SetMaterial( Material ) Real simple drag handler for material packages - this code is all getting shit though time to rip it up Refactored map view drop targets into an interface with attributes: `[CanDrop( Package.Type.Model )] class ModelDropTarget : IMapViewDropTarget` Once I wrap CMapView I'll make this public and make it work with standard AssetType too, so you'd be able to create custom drop targets for your game resources.