mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 23:04:52 +08:00
Some revisions to grass brush.
- Made some changes to the way I check for deleting instances. - Added a new bounding box check for painting grass. - Made GetNewGrassBounds return a bounding box instead of our parameters - Added new Expand method to bounding box util - Added instance radius check and instance brush check to project form for possible future instance types (Props) - Added grass brush gizmo - Updated gui for grass instance batch panel - Fixed bug with GoToPosition (with bounds)
This commit is contained in:
@@ -704,6 +704,25 @@ namespace CodeWalker.Project
|
||||
|
||||
//######## Public methods
|
||||
|
||||
// Possibly future proofing for procedural prop instances
|
||||
public bool CanPaintInstances()
|
||||
{
|
||||
if (CurrentGrassBatch != null)
|
||||
{
|
||||
if (CurrentGrassBatch.BrushEnabled)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public float GetInstanceBrushRadius()
|
||||
{
|
||||
if (CurrentGrassBatch != null)
|
||||
return CurrentGrassBatch.BrushRadius;
|
||||
|
||||
return 0f;
|
||||
}
|
||||
|
||||
public void NewProject()
|
||||
{
|
||||
if (CurrentProjectFile != null)
|
||||
|
||||
Reference in New Issue
Block a user