space928 / Blender-O3D-IO-Public

A plugin supporting blender 2.79.x-3.x.x for importing and exporting OMSI .sco, .cfg, and .o3d files
GNU General Public License v3.0
36 stars 5 forks source link

Spline attachement import placement bug #67

Open space928 opened 11 months ago

space928 commented 11 months ago

Some spline attachement objects are loaded at the wrong location:

Image

Pictured is the BuffaloGrill.sco in tile 43,-5 of GPM: {'cfg_type': 'splineAttachement', 'pos': [27.732055792445, 1.49999997646012, 48.7637014691185], 'rot': [90.0000020235813, 0.0, 0.0], 'spline': 110, 'rep_distance': 9.99999984306749, 'rep_range': 0.0} Attached to spline-3607144: {'id': 3607144, 'next_id': 0, 'prev_id': 3584404, 'pos': [124.762, 9.537e-07, 282.973], 'rot': 169.303 'length': 26.42, 'radius': -400.0, 'start_grad': 0.0, 'end_grad': 0.0, 'use_delta_height': 0, 'delta_height': 0, 'cant_start': 0.0, 'cant_end': 0.0, 'skew_start': 0.000219, 'skew_end': 0.0, 'mirror': 1, 'local_id': 110} It should be placed as shown:

Image

(Note that in OMSI Editor (and only in the UI, not in the saved map file), Z is up and Y is along the spline)

space928 commented 10 months ago

I'm starting to wonder if it's a bug in how "mirror" is handled...