App: add new convenient class SubObjectT

Derived from App::DocumentObjectT to add support of sub object

Also some minor changes to App::DocumentObjectT

Changed Gui::SelectionChanges to make use of SubObjectT
This commit is contained in:
Zheng, Lei
2019-12-05 10:34:51 +08:00
committed by WandererFan
parent 5d60f3af01
commit 39959f9500
6 changed files with 324 additions and 121 deletions

View File

@@ -1485,7 +1485,7 @@ void ViewProviderSketch::onSelectionChanged(const Gui::SelectionChanges& msg)
// are we in edit?
if (edit) {
// ignore external object
if(msg.ObjName.size() && msg.DocName.size() && msg.DocName!=getObject()->getDocument()->getName())
if(msg.Object.getObjectName().size() && msg.Object.getDocument()!=getObject()->getDocument())
return;
bool handled=false;