Fix missing debug shapes in prefab window
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using FlaxEditor.Content;
|
using FlaxEditor.Content;
|
||||||
using FlaxEditor.Gizmo;
|
using FlaxEditor.Gizmo;
|
||||||
using FlaxEditor.GUI.ContextMenu;
|
using FlaxEditor.GUI.ContextMenu;
|
||||||
@@ -799,6 +798,15 @@ namespace FlaxEditor.Viewport
|
|||||||
{
|
{
|
||||||
base.OnDebugDraw(context, ref renderContext);
|
base.OnDebugDraw(context, ref renderContext);
|
||||||
|
|
||||||
|
// Collect selected objects debug shapes and visuals
|
||||||
|
_debugDrawData.Clear();
|
||||||
|
var selectedParents = TransformGizmo.SelectedParents;
|
||||||
|
for (int i = 0; i < selectedParents.Count; i++)
|
||||||
|
{
|
||||||
|
if (selectedParents[i].IsActiveInHierarchy)
|
||||||
|
selectedParents[i].OnDebugDraw(_debugDrawData);
|
||||||
|
}
|
||||||
|
|
||||||
unsafe
|
unsafe
|
||||||
{
|
{
|
||||||
fixed (IntPtr* actors = _debugDrawData.ActorsPtrs)
|
fixed (IntPtr* actors = _debugDrawData.ActorsPtrs)
|
||||||
|
|||||||
Reference in New Issue
Block a user