Gui: Improve transform UI responsivness
This introduces much faster CenterOfMassProvider#supports method that can be used as cheap pre-check to see if the object supplied could have the center of mass and so delay the domputation to a moment where it is actually needed.
This commit is contained in:
committed by
Chris Hennes
parent
5f0d99f4f3
commit
88d721b14c
@@ -27,4 +27,9 @@ std::optional<Base::Vector3d>
|
||||
App::NullCenterOfMass::ofDocumentObject([[maybe_unused]] DocumentObject* object) const
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
bool App::NullCenterOfMass::supports(DocumentObject* object) const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user