diff --git a/src/Mod/Import/App/AppImportPy.cpp b/src/Mod/Import/App/AppImportPy.cpp index dc6e58fa9..c4783569e 100644 --- a/src/Mod/Import/App/AppImportPy.cpp +++ b/src/Mod/Import/App/AppImportPy.cpp @@ -82,11 +82,7 @@ public: add_varargs_method("export",&Module::exporter, "export(list,string) -- Export a list of objects into a single file." ); - initialize("This module is the Import module."); // register with Python - - if(TargetObjectPy) - target = static_cast(TargetObjectPy)->getDocumentObjectPtr(); - + initialize("This module is the Import module."); // register with Python } virtual ~Module() {}