+ fix isometric view

+ fix bug in PropertyFileIncluded with empty string
+ fix little German translation issue

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5204 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-12-02 10:48:19 +00:00
parent 69aee6a7d3
commit 818c38a851
3 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ std::string PropertyFileIncluded::getExchangeTempFile(void) const
void PropertyFileIncluded::setValue(const char* sFile, const char* sName)
{
if (sFile) {
if (sFile && sFile[0] != '\0') {
if (_cValue == sFile)
throw Base::Exception("Not possible to set the same file!");

View File

@ -3635,7 +3635,7 @@ Wollen Sie fortfahren?</translation>
</message>
<message>
<source>Finish</source>
<translation>Beenden</translation>
<translation>Fertig</translation>
</message>
<message>
<source>Clear</source>

View File

@ -389,10 +389,10 @@ Py::Object View3DInventorPy::viewAxometric(const Py::Tuple& args)
//p1=App.Rotation(App.Vector(1,0,0),90)
//p2=App.Rotation(App.Vector(0,0,1),45)
//p3=App.Rotation(App.Vector(1,1,0),45)
//p3=App.Rotation(App.Vector(1,1,0),degrees(asin(sqrt(1.0/3.0))))
//p3=App.Rotation(App.Vector(1,1,0),degrees(asin(-sqrt(1.0/3.0))))
//p4=p3.multiply(p2).multiply(p1)
_view->getViewer()->setCameraOrientation(SbRotation
(0.820473f, 0.339851f, 0.17592f, 0.424708f));
(0.424708f, 0.17592f, 0.339851f, 0.820473f));
}
catch (const Base::Exception& e) {
throw Py::Exception(e.what());