| 806 | } |
| 807 | |
| 808 | bool ViewProvider::canDropObject(App::DocumentObject* obj) const |
| 809 | { |
| 810 | auto vector = getExtensionsDerivedFromType<Gui::ViewProviderExtension>(); |
| 811 | #if FC_DEBUG |
| 812 | Base::Console().log("Check extensions for drop\n"); |
| 813 | #endif |
| 814 | for (Gui::ViewProviderExtension* ext : vector) { |
| 815 | #if FC_DEBUG |
| 816 | Base::Console().log("Check extensions %s\n", ext->name().c_str()); |
| 817 | #endif |
| 818 | if (ext->extensionCanDropObject(obj)) { |
| 819 | return true; |
| 820 | } |
| 821 | } |
| 822 | |
| 823 | return false; |
| 824 | } |
| 825 | |
| 826 | bool ViewProvider::canDropObjects() const |
| 827 | { |
nothing calls this directly
no test coverage detected