diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-10-16 10:51:30 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-10-16 10:51:30 +0300 |
commit | 059ab4a05c42dd47b621200f6a737c5534c02877 (patch) | |
tree | 3d4bc979f66818adf1b7f04cd02db3f5dad0a401 /xs | |
parent | fb6c1a885c8e6511a1a8807c2a67b1259adc5824 (diff) |
ModelInstance's full 3D transform set as default
Diffstat (limited to 'xs')
-rw-r--r-- | xs/xsp/Model.xsp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp index 62ccf2b06..cfe34a794 100644 --- a/xs/xsp/Model.xsp +++ b/xs/xsp/Model.xsp @@ -295,7 +295,6 @@ ModelMaterial::attributes() Ref<ModelObject> object() %code%{ RETVAL = THIS->get_object(); %}; -#if ENABLE_MODELINSTANCE_3D_FULL_TRANSFORM Vec3d* rotation() %code%{ RETVAL = new Vec3d(THIS->get_rotation(X), THIS->get_rotation(Y), THIS->get_rotation(Z)); %}; @@ -322,25 +321,6 @@ ModelMaterial::attributes() THIS->set_offset(X, (*offset)(0)); THIS->set_offset(Y, (*offset)(1)); %}; -#else - double rotation() - %code%{ RETVAL = THIS->rotation; %}; - - double scaling_factor() - %code%{ RETVAL = THIS->scaling_factor; %}; - - Ref<Vec2d> offset() - %code%{ RETVAL = &THIS->offset; %}; - - void set_rotation(double val) - %code%{ THIS->rotation = val; THIS->get_object()->invalidate_bounding_box(); %}; - - void set_scaling_factor(double val) - %code%{ THIS->scaling_factor = val; THIS->get_object()->invalidate_bounding_box(); %}; - - void set_offset(Vec2d *offset) - %code%{ THIS->offset = *offset; %}; -#endif // ENABLE_MODELINSTANCE_3D_FULL_TRANSFORM void transform_mesh(TriangleMesh* mesh, bool dont_translate = false) const; void transform_polygon(Polygon* polygon) const; |