Viewport Destructor


#1

Hey,

Excuse my possible ignorance but is there a reason why the destructor for Viewport is not virtual.
Seems to make inheriting from it quite painful.

Mat


#2

Viewport derives from Component, so it inherits the virtuality (is that a real word?) by default. Actually putting the “virtual” keyword in there is optional.


#3

Ah cool,

I thought there must be a reason, just didn’t know what it was :wink:

Thanks for the fast response!