mirror of https://github.com/vitalif/openscad
Merge pull request #1279 from openscad/issue1277
Update temporal variables for each evaluation, not for each compilation....master
commit
85290e4d51
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue