Changeset View
Changeset View
Standalone View
Standalone View
source/blender/io/wavefront_obj/exporter/obj_export_nurbs.cc
| Show All 25 Lines | |||||
| } | } | ||||
| void OBJCurve::set_world_axes_transform(const eIOAxis forward, const eIOAxis up) | void OBJCurve::set_world_axes_transform(const eIOAxis forward, const eIOAxis up) | ||||
| { | { | ||||
| float axes_transform[3][3]; | float axes_transform[3][3]; | ||||
| unit_m3(axes_transform); | unit_m3(axes_transform); | ||||
| /* +Y-forward and +Z-up are the Blender's default axis settings. */ | /* +Y-forward and +Z-up are the Blender's default axis settings. */ | ||||
| mat3_from_axis_conversion(forward, up, IO_AXIS_Y, IO_AXIS_Z, axes_transform); | mat3_from_axis_conversion(forward, up, IO_AXIS_Y, IO_AXIS_Z, axes_transform); | ||||
| mul_m4_m3m4(world_axes_transform_, axes_transform, export_object_eval_->obmat); | mul_m4_m3m4(world_axes_transform_, axes_transform, export_object_eval_->object_to_world); | ||||
| /* #mul_m4_m3m4 does not transform last row of #Object.obmat, i.e. location data. */ | /* #mul_m4_m3m4 does not transform last row of #Object.object_to_world, i.e. location data. */ | ||||
| mul_v3_m3v3(world_axes_transform_[3], axes_transform, export_object_eval_->obmat[3]); | mul_v3_m3v3(world_axes_transform_[3], axes_transform, export_object_eval_->object_to_world[3]); | ||||
| world_axes_transform_[3][3] = export_object_eval_->obmat[3][3]; | world_axes_transform_[3][3] = export_object_eval_->object_to_world[3][3]; | ||||
| } | } | ||||
| const char *OBJCurve::get_curve_name() const | const char *OBJCurve::get_curve_name() const | ||||
| { | { | ||||
| return export_object_eval_->id.name + 2; | return export_object_eval_->id.name + 2; | ||||
| } | } | ||||
| int OBJCurve::total_splines() const | int OBJCurve::total_splines() const | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||