Skip to content

Commit 4e748a5

Browse files
committed
Fixes GraphicsGem Template Compilation
The existing GraphicsGem Template was calling a pair of obsolete function in the controller class: `m_controller.EnableFeatureProcessor(GetEntityId());` and `m_controller.DisableFeatureProcessor();` The fix was to simply remove the declaration and implementation of the override: `void OnEntityVisibilityChanged(bool visibility) override;` Signed-off-by: galibzon <[email protected]>
1 parent efdfc65 commit 4e748a5

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

Templates/GraphicsGem/Template/Code/Source/Tools/Components/Editor${Name}Component.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,4 @@ namespace ${Name}
8686
}
8787
}
8888

89-
void Editor${Name}Component::OnEntityVisibilityChanged(bool visibility)
90-
{
91-
if (visibility)
92-
{
93-
m_controller.EnableFeatureProcessor(GetEntityId());
94-
}
95-
else
96-
{
97-
m_controller.DisableFeatureProcessor();
98-
}
99-
}
10089
}

Templates/GraphicsGem/Template/Code/Source/Tools/Components/Editor${Name}Component.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ namespace ${Name}
4343
void Activate() override;
4444
void Deactivate() override;
4545

46-
protected:
47-
48-
void OnEntityVisibilityChanged(bool visibility) override;
49-
5046
private:
5147

5248
// AZ::TickBus overrides

0 commit comments

Comments
 (0)