Skip to content

Commit 772fd4f

Browse files
Update GizmoDrawerInspector.cs
Hide the option to use origin transform values if its null.
1 parent c2755b5 commit 772fd4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/GizmoDrawerInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void DrawInspector(GizmoType type, GizmoDrawerInspector editor, out bool
159159

160160
EditorGUILayout.PropertyField(editor.serProp_useTransformVals);
161161
bool useTransform = editor.serProp_useTransformVals.boolValue;
162-
if (!useTransform)
162+
if (!useTransform && editor.gizmoDrawer.originTransform != null)
163163
EditorGUILayout.PropertyField(editor.serProp_useOriginTransformValues);
164164

165165
/* Show rotation and scale fields if we're not using either the transform of the object

0 commit comments

Comments
 (0)