//********************************** Banshee Engine (www.banshee3d.com) **************************************************//
//**************** Copyright (c) 2016 Marko Pintera (marko.pintera@gmail.com). All rights reserved. **********************//
using BansheeEngine;
namespace BansheeEditor
{
/** @addtogroup Inspectors
* @{
*/
///
/// Renders an inspector for the component.
///
[CustomInspector(typeof(FixedJoint))]
internal class FixedJointInspector : JointInspector
{
///
protected internal override void Initialize()
{
FixedJoint joint = InspectedObject as FixedJoint;
if (joint != null)
BuildGUI(joint, false);
}
///
protected internal override InspectableState Refresh()
{
FixedJoint joint = InspectedObject as FixedJoint;
if (joint == null)
return InspectableState.NotModified;
Refresh(joint);
InspectableState oldState = modifyState;
if (modifyState.HasFlag(InspectableState.Modified))
modifyState = InspectableState.NotModified;
return oldState;
}
}
/** @} */
}