Merge pull request #1279 from openscad/issue1277

Update temporal variables for each evaluation, not for each compilation....
master
Marius Kintel 2015-03-23 15:28:54 -04:00
commit 85290e4d51
1 changed files with 2 additions and 2 deletions

View File

@ -832,7 +832,7 @@ void MainWindow::updateTVal()
double fps = this->e_fps->text().toDouble(&fps_ok); double fps = this->e_fps->text().toDouble(&fps_ok);
if (fps_ok) { if (fps_ok) {
if (fps <= 0) { if (fps <= 0) {
actionRenderPreview(); actionReloadRenderPreview();
} else { } else {
double s = this->e_fsteps->text().toDouble(); double s = this->e_fsteps->text().toDouble();
double t = this->e_tval->text().toDouble() + 1/s; double t = this->e_tval->text().toDouble() + 1/s;
@ -997,6 +997,7 @@ void MainWindow::compileDone(bool didchange)
{ {
const char *callslot; const char *callslot;
if (didchange) { if (didchange) {
updateTemporalVariables();
instantiateRoot(); instantiateRoot();
updateCamera(); updateCamera();
updateCompileResult(); updateCompileResult();
@ -1643,7 +1644,6 @@ bool MainWindow::fileChangedOnDisk()
*/ */
void MainWindow::compileTopLevelDocument() void MainWindow::compileTopLevelDocument()
{ {
updateTemporalVariables();
resetPrintedDeprecations(); resetPrintedDeprecations();
this->last_compiled_doc = editor->toPlainText(); this->last_compiled_doc = editor->toPlainText();