|
|
|
|
|
|
if (influenceChanged || EditorGUI.EndChangeCheck()) |
|
|
|
{ |
|
|
|
Undo.RecordObject(reflectionData, "Modified Reflection influence volume"); |
|
|
|
var center = s.influenceSphereHandle.center; |
|
|
|
var influenceRadius =s.influenceSphereHandle.radius; |
|
|
|
var center = p.center; |
|
|
|
var influenceRadius = s.influenceSphereHandle.radius; |
|
|
|
? influenceRadius - p.blendDistance * 2 |
|
|
|
? Mathf.Max(influenceRadius - p.blendDistance * 2, 0) |
|
|
|
|
|
|
|
|
|
|
|
reflectionData.influenceSphereRadius = radius.x; |
|
|
|
reflectionData.influenceSphereRadius = influenceRadius; |
|
|
|
p.blendDistance = blendDistance; |
|
|
|
EditorUtility.SetDirty(p); |
|
|
|
EditorUtility.SetDirty(reflectionData); |
|
|
|