From edc86a70d1f352015c6ca08a670ae98d213f1c4d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 May 2020 20:07:50 +0200 Subject: [PATCH] texture:: save arb filename --- textures.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/textures.cpp b/textures.cpp index 2fe5e2e1..fdd2e801 100644 --- a/textures.cpp +++ b/textures.cpp @@ -942,6 +942,8 @@ eGeometry targetgeometry; string csymbol; +string tes; + void init_textureconfig() { #if CAP_CONFIG texturesavers = move(savers); @@ -954,6 +956,7 @@ void init_textureconfig() { addsaver(View[i][j], "viewmatrix_" + its(i) + its(j), i==j ? 1 : 0); addsaverenum(targetgeometry, "geometry", gNormal); + addsaver(tes, "tes", ""); addsaverenum(pmodel, "used model", mdDisk); addsaver(vid.yshift, "Y shift", 0); addsaver(pconf.yposition, "Y position", 0); @@ -1011,6 +1014,8 @@ bool texture_config::save() { cell *ctr = centerover; si_save = patterns::getpatterninfo0(ctr); + + if(arb::in()) tes = arb::current.filename; if(arcm::in()) csymbol = arcm::current.symbol; else csymbol = ""; @@ -1051,6 +1056,10 @@ bool texture_config::load() { return false; } } + if(targetgeometry == gArbitrary) { + arb::run(tes); + stop_game(); + } set_geometry(targetgeometry); start_game(); return config.load();