浏览代码

[ReflectionProbeEditor] fixed sphere influence radius dragging

/feature-ReflectionProbeFit
Frédéric Vauchelles 7 年前
当前提交
603661ad
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs

10
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDReflectionProbeEditor.Handles.cs


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);

正在加载...
取消
保存