Compare commits

...

7 Commits

Author SHA1 Message Date
wmayer 244b3aef36 + use correct function to get resource directory 2015-04-05 19:25:02 +02:00
wmayer d54457e9b3 + fix version number in script 2015-04-01 10:40:30 +02:00
Bernd Hahnebach d8bbbc1d1d Fem: fix: system() is evaluated instead of calling it 2015-03-24 12:53:46 +01:00
wmayer b82a28cd89 + re-enable check for active window for spaceball events 2015-03-23 19:56:07 +01:00
blobfish 99b87881c2 Part: ModelRefine: catch bspline isEqual exception 2015-03-23 17:46:04 +01:00
Sebastian Hoogen be823acda2 fix locale handling
unset LC_ALL in MainGui like it was done in MainCmd in f32caef40c
2015-03-21 23:40:27 +01:00
wmayer f376ce1310 + make 0.15 release branch 2015-03-20 14:37:11 +01:00
7 changed files with 30 additions and 10 deletions
+3 -3
View File
@@ -1,10 +1,10 @@
project(FreeCAD_trunk)
set(FREECAD_VERSION "0.14")
set(FREECAD_VERSION "0.15")
set(PACKAGE_NAME "FreeCAD")
set(PACKAGE_VERSION_MAJOR "0")
set(PACKAGE_VERSION_MINOR "14")
set(PACKAGE_VERSION_PATCH "3700")
set(PACKAGE_VERSION_MINOR "15")
set(PACKAGE_VERSION_PATCH "4664")
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
+2 -3
View File
@@ -100,9 +100,8 @@ void Gui::GUIApplicationNativeEventAware::initSpaceball(QMainWindow *window)
bool Gui::GUIApplicationNativeEventAware::processSpaceballEvent(QObject *object, QEvent *event)
{
// Maybe this causes the regression reported in #0001970. So to test it it will be commented out for now
//if (!activeWindow())
// return true;
if (!activeWindow())
return true;
QApplication::notify(object, event);
if (event->type() == Spaceball::MotionEvent::MotionEventType)
+2
View File
@@ -191,10 +191,12 @@ int main( int argc, char ** argv )
QFile::setDecodingFunction(myDecoderFunc);
// Make sure that we use '.' as decimal point. See also
// http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559846
putenv("LC_ALL=");
putenv("LC_NUMERIC=C");
putenv("PYTHONPATH=");
#elif defined(FC_OS_MACOSX)
(void)QLocale::system();
putenv("LC_ALL=");
putenv("LC_NUMERIC=C");
putenv("PYTHONPATH=");
#else
+2 -2
View File
@@ -214,9 +214,9 @@ class _JobControlTaskPanel:
# the categories are shown only if they are not empty.
self.form=FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/Fem/MechanicalAnalysis.ui")
from platform import system
if system == 'Linux':
if system() == 'Linux':
self.CalculixBinary = 'ccx'
elif system == 'Windows':
elif system() == 'Windows':
self.CalculixBinary = FreeCAD.getHomePath() + 'bin/ccx.exe'
else:
self.CalculixBinary = 'ccx'
+1 -1
View File
@@ -230,7 +230,7 @@ class _MechanicalMaterialTaskPanel:
def fillMaterialCombo(self):
import glob,os
matmap = self.obj.Material
dirname = FreeCAD.ConfigGet("AppHomePath")+"data/Mod/Material/StandardMaterial"
dirname = FreeCAD.getResourceDir()+"/Mod/Material/StandardMaterial"
self.pathList = glob.glob(dirname + '/*.FCMat')
self.form.comboBox_MaterialsInDir.clear()
'''if(matmap.has_key('General_name')):
+19
View File
@@ -61,6 +61,7 @@
#include <BRepAdaptor_Curve.hxx>
#include <TColgp_SequenceOfPnt.hxx>
#include <GeomAPI_ProjectPointOnSurf.hxx>
#include <Base/Console.h>
#include "modelRefine.h"
using namespace ModelRefine;
@@ -767,6 +768,8 @@ FaceTypedBSpline::FaceTypedBSpline() : FaceTypedBase(GeomAbs_BSplineSurface)
bool FaceTypedBSpline::isEqual(const TopoDS_Face &faceOne, const TopoDS_Face &faceTwo) const
{
try
{
Handle(Geom_BSplineSurface) surfaceOne = Handle(Geom_BSplineSurface)::DownCast(BRep_Tool::Surface(faceOne));
Handle(Geom_BSplineSurface) surfaceTwo = Handle(Geom_BSplineSurface)::DownCast(BRep_Tool::Surface(faceTwo));
@@ -849,6 +852,22 @@ bool FaceTypedBSpline::isEqual(const TopoDS_Face &faceOne, const TopoDS_Face &fa
if (vKnotSequenceOne.Value(indexV) != vKnotSequenceTwo.Value(indexV))
return false;
return true;
}
catch (Standard_Failure)
{
Handle(Standard_Failure) e = Standard_Failure::Caught();
std::ostringstream stream;
stream << "FaceTypedBSpline::isEqual: OCC Error: " << e->GetMessageString() << std::endl;
Base::Console().Message(stream.str().c_str());
}
catch (...)
{
std::ostringstream stream;
stream << "FaceTypedBSpline::isEqual: Unknown Error" << std::endl;
Base::Console().Message(stream.str().c_str());
}
return false;
}
GeomAbs_SurfaceType FaceTypedBSpline::getType() const
+1 -1
View File
@@ -43,7 +43,7 @@ def main():
revision='%04d' % (info.count('\n'))
PACKAGE_NAME = 'freecad'
version = "0.14.%s" % (revision)
version = "0.15.%s" % (revision)
DIRNAME = "%(p)s-%(v)s" % {'p': PACKAGE_NAME, 'v': version}
TARNAME = DIRNAME + '.tar'