From 5d83620df16e34b33f0d14627c78a7e88779e49a Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Sun, 3 Feb 2013 18:49:09 +0000 Subject: [PATCH] --- Geo/Chain.cpp | 4 ++-- Geo/Chain.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Geo/Chain.cpp b/Geo/Chain.cpp index dd80308fd1..29e06b67d0 100644 --- a/Geo/Chain.cpp +++ b/Geo/Chain.cpp @@ -20,10 +20,10 @@ #if defined(HAVE_KBIPACK) -void updateFltkTree() +void updateFltk() { #if defined(HAVE_FLTK) - FlGui::instance()->rebuildTree(); + if(FlGui::available()) FlGui::instance()->updateViews(); #endif } diff --git a/Geo/Chain.h b/Geo/Chain.h index 096f5692fe..cc85df9b4f 100644 --- a/Geo/Chain.h +++ b/Geo/Chain.h @@ -20,7 +20,7 @@ #if defined(HAVE_KBIPACK) -void updateFltkTree(); +void updateFltk(); std::string convertInt(int number); // Class whose derivative classes are to have partial or total order @@ -503,7 +503,7 @@ void Chain<C>::addToModel(GModel* m, bool post, // create PView for instant visualization std::string pnum = convertInt(physicalNum); std::string postname = pnum + "=" + _name; - PView* view = new PView(postname, "ElementData", m, data, 0, 1); + PView* view = new PView(postname, "ElementData", m, data, 0., 1); // the user should be interested about the orientations int size = 30; PViewOptions* opt = view->getOptions(); @@ -511,7 +511,7 @@ void Chain<C>::addToModel(GModel* m, bool post, if(opt->tangents == 0) opt->tangents = size; if(opt->normals == 0) opt->normals = size; view->setOptions(opt); - updateFltkTree(); + updateFltk(); } #endif } -- GitLab