浏览代码

- removed old bug workaround that hurts GraphCanvas performance (#8720)

Signed-off-by: Alex Montgomery <[email protected]>
Alex Montgomery 3 年之前
父节点
当前提交
9ca82b47e1
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Gems/GraphCanvas/Code/Source/Components/SceneComponent.cpp

+ 0 - 3
Gems/GraphCanvas/Code/Source/Components/SceneComponent.cpp

@@ -4698,9 +4698,6 @@ namespace GraphCanvas
         : m_scene(scene)
         : m_scene(scene)
         , m_suppressContextMenu(false)
         , m_suppressContextMenu(false)
     {
     {
-        // Workaround for QTBUG-18021
-        setItemIndexMethod(QGraphicsScene::NoIndex);
-
         setMinimumRenderSize(2.0f);
         setMinimumRenderSize(2.0f);
         connect(this, &QGraphicsScene::selectionChanged, this, [this]() { m_scene.OnSelectionChanged(); });
         connect(this, &QGraphicsScene::selectionChanged, this, [this]() { m_scene.OnSelectionChanged(); });
         setSceneRect(-20000, -20000, 40000, 40000);
         setSceneRect(-20000, -20000, 40000, 40000);