knowing if a model is selected
Hi
How are you supposed to find out if a model is currently selected by the user from a model plugin? I've hunted around the Model and Entity classes and can't find any variables which store this information.
If there isn't currently a way, I could set a boolean in the model class when its selected / deselected in the method GLWidget::SetSelectedVisual. But how do you get a model from a visual?
Thanks
Jamie
To get a model from a visual, you can use Visual::GetRootVisual
Sweet thanks!