On Tue, Sep 21, 2021 at 07:40:43AM +0000, Rodrigo Severo via Therion wrote:
> Is there a way to make Therion recognize the splay shots flags defined
> in the Survex file so I can control their appearance separately from
> the main shots and their length not be included on the total cave
> length?
It looks like Therion is just missing handling for splay flags on import
from 3d (though oddly it does appear to have code to export them to 3d).
Try the attached patch (totally untested).
Cheers,
Olly
diff --git a/thimport.cxx b/thimport.cxx
index 2d3337aa..be0188e7 100644
--- a/thimport.cxx
+++ b/thimport.cxx
@@ -675,6 +675,9 @@ void thimport::import_file_img()
if ((sli->flags & img_FLAG_DUPLICATE) != 0) {
tmpdata->d_flags |= TT_LEGFLAG_DUPLICATE;
}
+ if ((sli->flags & img_FLAG_SPLAY) != 0) {
+ tmpdata->d_flags |= TT_LEGFLAG_SPLAY;
+ }
tmpdata->insert_data_leg(2, args);
this->db->csurveyptr = tmpsurvey;
}
_______________________________________________
Therion mailing list
[email protected]
https://mailman.speleo.sk/listinfo/therion