Browse Source

Visualize also the node of the currently hovered drawable or collision shape.

Lasse Öörni 14 years ago
parent
commit
b9dd734539
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Bin/Data/Scripts/Editor/EditorScene.as

+ 6 - 0
Bin/Data/Scripts/Editor/EditorScene.as

@@ -307,7 +307,10 @@ void SceneRaycast(bool mouseClick)
             {
                 Drawable@ drawable = result[0].drawable;
                 if (debug !is null)
+                {
+                    debug.AddNode(drawable.node, false);
                     drawable.DrawDebugGeometry(debug, false);
+                }
                 selected = drawable;
             }
         }
@@ -320,7 +323,10 @@ void SceneRaycast(bool mouseClick)
             {
                 CollisionShape@ shape = result[0].collisionShape;
                 if (debug !is null)
+                {
+                    debug.AddNode(shape.node, false);
                     shape.DrawDebugGeometry(debug, false);
+                }
                 selected = shape;
             }
         }