retarget_modifier_3d.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. /**************************************************************************/
  2. /* retarget_modifier_3d.cpp */
  3. /**************************************************************************/
  4. /* This file is part of: */
  5. /* GODOT ENGINE */
  6. /* https://godotengine.org */
  7. /**************************************************************************/
  8. /* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
  9. /* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
  10. /* */
  11. /* Permission is hereby granted, free of charge, to any person obtaining */
  12. /* a copy of this software and associated documentation files (the */
  13. /* "Software"), to deal in the Software without restriction, including */
  14. /* without limitation the rights to use, copy, modify, merge, publish, */
  15. /* distribute, sublicense, and/or sell copies of the Software, and to */
  16. /* permit persons to whom the Software is furnished to do so, subject to */
  17. /* the following conditions: */
  18. /* */
  19. /* The above copyright notice and this permission notice shall be */
  20. /* included in all copies or substantial portions of the Software. */
  21. /* */
  22. /* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
  23. /* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
  24. /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
  25. /* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
  26. /* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
  27. /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
  28. /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  29. /**************************************************************************/
  30. #include "retarget_modifier_3d.h"
  31. PackedStringArray RetargetModifier3D::get_configuration_warnings() const {
  32. PackedStringArray warnings = SkeletonModifier3D::get_configuration_warnings();
  33. if (child_skeletons.is_empty()) {
  34. warnings.push_back(RTR("There is no child Skeleton3D!"));
  35. }
  36. return warnings;
  37. }
  38. /// Caching
  39. void RetargetModifier3D::_profile_changed(Ref<SkeletonProfile> p_old, Ref<SkeletonProfile> p_new) {
  40. if (p_old.is_valid() && p_old->is_connected(SNAME("profile_updated"), callable_mp(this, &RetargetModifier3D::cache_rests_with_reset))) {
  41. p_old->disconnect(SNAME("profile_updated"), callable_mp(this, &RetargetModifier3D::cache_rests_with_reset));
  42. }
  43. profile = p_new;
  44. if (p_new.is_valid() && !p_new->is_connected(SNAME("profile_updated"), callable_mp(this, &RetargetModifier3D::cache_rests_with_reset))) {
  45. p_new->connect(SNAME("profile_updated"), callable_mp(this, &RetargetModifier3D::cache_rests_with_reset));
  46. }
  47. cache_rests_with_reset();
  48. }
  49. void RetargetModifier3D::_skeleton_changed(Skeleton3D *p_old, Skeleton3D *p_new) {
  50. if (p_old && p_old->is_connected(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::cache_rests))) {
  51. p_old->disconnect(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::cache_rests));
  52. }
  53. if (p_new && !p_new->is_connected(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::cache_rests))) {
  54. p_new->connect(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::cache_rests));
  55. }
  56. cache_rests();
  57. }
  58. void RetargetModifier3D::cache_rests_with_reset() {
  59. _reset_child_skeleton_poses();
  60. cache_rests();
  61. }
  62. void RetargetModifier3D::cache_rests() {
  63. source_bone_ids.clear();
  64. Skeleton3D *source_skeleton = get_skeleton();
  65. if (profile.is_null() || !source_skeleton) {
  66. return;
  67. }
  68. PackedStringArray bone_names = profile->get_bone_names();
  69. for (const String &E : bone_names) {
  70. source_bone_ids.push_back(source_skeleton->find_bone(E));
  71. }
  72. for (int i = 0; i < child_skeletons.size(); i++) {
  73. _update_child_skeleton_rests(i);
  74. }
  75. }
  76. Vector<RetargetModifier3D::RetargetBoneInfo> RetargetModifier3D::cache_bone_global_rests(Skeleton3D *p_skeleton) {
  77. // Retarget global pose in model space:
  78. // tgt_global_pose.basis = src_global_pose.basis * src_rest.basis.inv * src_parent_global_rest.basis.inv * tgt_parent_global_rest.basis * tgt_rest.basis
  79. // tgt_global_pose.origin = src_global_pose.origin
  80. Skeleton3D *source_skeleton = get_skeleton();
  81. Vector<RetargetBoneInfo> bone_rests;
  82. if (profile.is_null() || !source_skeleton) {
  83. return bone_rests;
  84. }
  85. PackedStringArray bone_names = profile->get_bone_names();
  86. for (const String &E : bone_names) {
  87. RetargetBoneInfo rbi;
  88. int source_bone_id = source_skeleton->find_bone(E);
  89. if (source_bone_id >= 0) {
  90. Transform3D parent_global_rest;
  91. int bone_parent = source_skeleton->get_bone_parent(source_bone_id);
  92. if (bone_parent >= 0) {
  93. parent_global_rest = source_skeleton->get_bone_global_rest(bone_parent);
  94. }
  95. rbi.post_basis = source_skeleton->get_bone_rest(source_bone_id).basis.inverse() * parent_global_rest.basis.inverse();
  96. }
  97. int target_bone_id = p_skeleton->find_bone(E);
  98. rbi.bone_id = target_bone_id;
  99. if (target_bone_id >= 0) {
  100. Transform3D parent_global_rest;
  101. int bone_parent = p_skeleton->get_bone_parent(target_bone_id);
  102. if (bone_parent >= 0) {
  103. parent_global_rest = p_skeleton->get_bone_global_rest(bone_parent);
  104. }
  105. rbi.post_basis = rbi.post_basis * parent_global_rest.basis * p_skeleton->get_bone_rest(target_bone_id).basis;
  106. }
  107. bone_rests.push_back(rbi);
  108. }
  109. return bone_rests;
  110. }
  111. Vector<RetargetModifier3D::RetargetBoneInfo> RetargetModifier3D::cache_bone_rests(Skeleton3D *p_skeleton) {
  112. // Retarget pose in model space:
  113. // tgt_pose.basis = tgt_parent_global_rest.basis.inv * src_parent_global_rest.basis * src_pose.basis * src_rest.basis.inv * src_parent_global_rest.basis.inv * tgt_parent_global_rest.basis * tgt_rest.basis
  114. // tgt_pose.origin = tgt_parent_global_rest.basis.inv.xform(src_parent_global_rest.basis.xform(src_pose.origin - src_rest.origin)) + tgt_rest.origin
  115. Skeleton3D *source_skeleton = get_skeleton();
  116. Vector<RetargetBoneInfo> bone_rests;
  117. if (profile.is_null() || !source_skeleton) {
  118. return bone_rests;
  119. }
  120. PackedStringArray bone_names = profile->get_bone_names();
  121. for (const String &E : bone_names) {
  122. RetargetBoneInfo rbi;
  123. int source_bone_id = source_skeleton->find_bone(E);
  124. if (source_bone_id >= 0) {
  125. Transform3D parent_global_rest;
  126. int bone_parent = source_skeleton->get_bone_parent(source_bone_id);
  127. if (bone_parent >= 0) {
  128. parent_global_rest = source_skeleton->get_bone_global_rest(bone_parent);
  129. }
  130. rbi.pre_basis = parent_global_rest.basis;
  131. rbi.post_basis = source_skeleton->get_bone_rest(source_bone_id).basis.inverse() * parent_global_rest.basis.inverse();
  132. }
  133. int target_bone_id = p_skeleton->find_bone(E);
  134. rbi.bone_id = target_bone_id;
  135. if (target_bone_id >= 0) {
  136. Transform3D parent_global_rest;
  137. int bone_parent = p_skeleton->get_bone_parent(target_bone_id);
  138. if (bone_parent >= 0) {
  139. parent_global_rest = p_skeleton->get_bone_global_rest(bone_parent);
  140. }
  141. rbi.pre_basis = parent_global_rest.basis.inverse() * rbi.pre_basis;
  142. rbi.post_basis = rbi.post_basis * parent_global_rest.basis * p_skeleton->get_bone_rest(target_bone_id).basis;
  143. }
  144. bone_rests.push_back(rbi);
  145. }
  146. return bone_rests;
  147. }
  148. void RetargetModifier3D::_update_child_skeleton_rests(int p_child_skeleton_idx) {
  149. ERR_FAIL_INDEX(p_child_skeleton_idx, child_skeletons.size());
  150. Skeleton3D *c = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(child_skeletons[p_child_skeleton_idx].skeleton_id));
  151. if (!c) {
  152. return;
  153. }
  154. if (use_global_pose) {
  155. child_skeletons.write[p_child_skeleton_idx].humanoid_bone_rests = cache_bone_global_rests(c);
  156. } else {
  157. child_skeletons.write[p_child_skeleton_idx].humanoid_bone_rests = cache_bone_rests(c);
  158. }
  159. }
  160. void RetargetModifier3D::_update_child_skeletons() {
  161. _reset_child_skeletons();
  162. for (int i = 0; i < get_child_count(); i++) {
  163. RetargetInfo ri;
  164. Skeleton3D *c = Object::cast_to<Skeleton3D>(get_child(i));
  165. if (c) {
  166. int id = child_skeletons.size();
  167. ri.skeleton_id = c->get_instance_id();
  168. child_skeletons.push_back(ri);
  169. c->connect(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::_update_child_skeleton_rests).bind(id));
  170. }
  171. }
  172. cache_rests();
  173. update_configuration_warnings();
  174. }
  175. void RetargetModifier3D::_reset_child_skeleton_poses() {
  176. for (const RetargetInfo &E : child_skeletons) {
  177. Skeleton3D *c = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(E.skeleton_id));
  178. if (!c) {
  179. continue;
  180. }
  181. if (c->is_connected(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::_update_child_skeleton_rests))) {
  182. c->disconnect(SNAME("rest_updated"), callable_mp(this, &RetargetModifier3D::_update_child_skeleton_rests));
  183. }
  184. for (const RetargetBoneInfo &F : E.humanoid_bone_rests) {
  185. if (F.bone_id < 0) {
  186. continue;
  187. }
  188. c->reset_bone_pose(F.bone_id);
  189. }
  190. }
  191. }
  192. void RetargetModifier3D::_reset_child_skeletons() {
  193. _reset_child_skeleton_poses();
  194. child_skeletons.clear();
  195. }
  196. #ifdef TOOLS_ENABLED
  197. void RetargetModifier3D::_force_update_child_skeletons() {
  198. for (const RetargetInfo &E : child_skeletons) {
  199. Skeleton3D *c = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(E.skeleton_id));
  200. if (!c) {
  201. continue;
  202. }
  203. c->force_update_all_dirty_bones();
  204. c->emit_signal(SceneStringName(skeleton_updated));
  205. }
  206. }
  207. #endif // TOOLS_ENABLED
  208. /// General functions
  209. void RetargetModifier3D::add_child_notify(Node *p_child) {
  210. if (Object::cast_to<Skeleton3D>(p_child)) {
  211. _update_child_skeletons();
  212. }
  213. }
  214. void RetargetModifier3D::move_child_notify(Node *p_child) {
  215. if (Object::cast_to<Skeleton3D>(p_child)) {
  216. _update_child_skeletons();
  217. }
  218. }
  219. void RetargetModifier3D::remove_child_notify(Node *p_child) {
  220. if (Object::cast_to<Skeleton3D>(p_child)) {
  221. // Reset after process.
  222. callable_mp(this, &RetargetModifier3D::_update_child_skeletons).call_deferred();
  223. }
  224. }
  225. void RetargetModifier3D::_validate_property(PropertyInfo &p_property) const {
  226. if (use_global_pose) {
  227. if (p_property.name == "enable_flags") {
  228. p_property.usage = PROPERTY_USAGE_NONE;
  229. }
  230. }
  231. }
  232. void RetargetModifier3D::_bind_methods() {
  233. ClassDB::bind_method(D_METHOD("set_profile", "profile"), &RetargetModifier3D::set_profile);
  234. ClassDB::bind_method(D_METHOD("get_profile"), &RetargetModifier3D::get_profile);
  235. ClassDB::bind_method(D_METHOD("set_use_global_pose", "use_global_pose"), &RetargetModifier3D::set_use_global_pose);
  236. ClassDB::bind_method(D_METHOD("is_using_global_pose"), &RetargetModifier3D::is_using_global_pose);
  237. ClassDB::bind_method(D_METHOD("set_enable_flags", "enable_flags"), &RetargetModifier3D::set_enable_flags);
  238. ClassDB::bind_method(D_METHOD("get_enable_flags"), &RetargetModifier3D::get_enable_flags);
  239. ClassDB::bind_method(D_METHOD("set_position_enabled", "enabled"), &RetargetModifier3D::set_position_enabled);
  240. ClassDB::bind_method(D_METHOD("is_position_enabled"), &RetargetModifier3D::is_position_enabled);
  241. ClassDB::bind_method(D_METHOD("set_rotation_enabled", "enabled"), &RetargetModifier3D::set_rotation_enabled);
  242. ClassDB::bind_method(D_METHOD("is_rotation_enabled"), &RetargetModifier3D::is_rotation_enabled);
  243. ClassDB::bind_method(D_METHOD("set_scale_enabled", "enabled"), &RetargetModifier3D::set_scale_enabled);
  244. ClassDB::bind_method(D_METHOD("is_scale_enabled"), &RetargetModifier3D::is_scale_enabled);
  245. ADD_PROPERTY(PropertyInfo(Variant::OBJECT, "profile", PROPERTY_HINT_RESOURCE_TYPE, "SkeletonProfile"), "set_profile", "get_profile");
  246. ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_global_pose"), "set_use_global_pose", "is_using_global_pose");
  247. ADD_PROPERTY(PropertyInfo(Variant::INT, "enable", PROPERTY_HINT_FLAGS, "Position,Rotation,Scale"), "set_enable_flags", "get_enable_flags");
  248. BIND_BITFIELD_FLAG(TRANSFORM_FLAG_POSITION);
  249. BIND_BITFIELD_FLAG(TRANSFORM_FLAG_ROTATION);
  250. BIND_BITFIELD_FLAG(TRANSFORM_FLAG_SCALE);
  251. BIND_BITFIELD_FLAG(TRANSFORM_FLAG_ALL);
  252. }
  253. void RetargetModifier3D::_set_active(bool p_active) {
  254. if (!p_active) {
  255. _reset_child_skeleton_poses();
  256. }
  257. }
  258. void RetargetModifier3D::_retarget_global_pose() {
  259. Skeleton3D *source_skeleton = get_skeleton();
  260. if (profile.is_null() || !source_skeleton) {
  261. return;
  262. }
  263. LocalVector<Transform3D> source_poses;
  264. if (influence < 1.0) {
  265. for (int source_bone_id : source_bone_ids) {
  266. source_poses.push_back(source_bone_id < 0 ? Transform3D() : source_skeleton->get_bone_global_rest(source_bone_id).interpolate_with(source_skeleton->get_bone_global_pose(source_bone_id), influence));
  267. }
  268. } else {
  269. for (int source_bone_id : source_bone_ids) {
  270. source_poses.push_back(source_bone_id < 0 ? Transform3D() : source_skeleton->get_bone_global_pose(source_bone_id));
  271. }
  272. }
  273. for (const RetargetInfo &E : child_skeletons) {
  274. Skeleton3D *target_skeleton = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(E.skeleton_id));
  275. if (!target_skeleton) {
  276. continue;
  277. }
  278. for (int i = 0; i < source_bone_ids.size(); i++) {
  279. int target_bone_id = E.humanoid_bone_rests[i].bone_id;
  280. if (target_bone_id < 0) {
  281. continue;
  282. }
  283. Transform3D retarget_pose = source_poses[i];
  284. retarget_pose.basis = retarget_pose.basis * E.humanoid_bone_rests[i].post_basis;
  285. target_skeleton->set_bone_global_pose(target_bone_id, retarget_pose);
  286. }
  287. }
  288. }
  289. void RetargetModifier3D::_retarget_pose() {
  290. Skeleton3D *source_skeleton = get_skeleton();
  291. if (profile.is_null() || !source_skeleton) {
  292. return;
  293. }
  294. LocalVector<Transform3D> source_poses;
  295. if (influence < 1.0) {
  296. for (int source_bone_id : source_bone_ids) {
  297. source_poses.push_back(source_bone_id < 0 ? Transform3D() : source_skeleton->get_bone_rest(source_bone_id).interpolate_with(source_skeleton->get_bone_pose(source_bone_id), influence));
  298. }
  299. } else {
  300. for (int source_bone_id : source_bone_ids) {
  301. source_poses.push_back(source_bone_id < 0 ? Transform3D() : source_skeleton->get_bone_pose(source_bone_id));
  302. }
  303. }
  304. for (const RetargetInfo &E : child_skeletons) {
  305. Skeleton3D *target_skeleton = Object::cast_to<Skeleton3D>(ObjectDB::get_instance(E.skeleton_id));
  306. if (!target_skeleton) {
  307. continue;
  308. }
  309. float motion_scale_ratio = target_skeleton->get_motion_scale() / source_skeleton->get_motion_scale();
  310. for (int i = 0; i < source_bone_ids.size(); i++) {
  311. int target_bone_id = E.humanoid_bone_rests[i].bone_id;
  312. if (target_bone_id < 0) {
  313. continue;
  314. }
  315. int source_bone_id = source_bone_ids[i];
  316. if (source_bone_id < 0) {
  317. continue;
  318. }
  319. Transform3D extracted_transform = source_poses[i];
  320. extracted_transform.basis = E.humanoid_bone_rests[i].pre_basis * extracted_transform.basis * E.humanoid_bone_rests[i].post_basis;
  321. extracted_transform.origin = E.humanoid_bone_rests[i].pre_basis.xform((extracted_transform.origin - source_skeleton->get_bone_rest(source_bone_id).origin) * motion_scale_ratio) + target_skeleton->get_bone_rest(target_bone_id).origin;
  322. if (enable_flags.has_flag(TRANSFORM_FLAG_POSITION)) {
  323. target_skeleton->set_bone_pose_position(target_bone_id, extracted_transform.origin);
  324. }
  325. if (enable_flags.has_flag(TRANSFORM_FLAG_ROTATION)) {
  326. target_skeleton->set_bone_pose_rotation(target_bone_id, extracted_transform.basis.get_rotation_quaternion());
  327. }
  328. if (enable_flags.has_flag(TRANSFORM_FLAG_SCALE)) {
  329. target_skeleton->set_bone_pose_scale(target_bone_id, extracted_transform.basis.get_scale());
  330. }
  331. }
  332. }
  333. }
  334. void RetargetModifier3D::_process_modification() {
  335. if (use_global_pose) {
  336. _retarget_global_pose();
  337. } else {
  338. _retarget_pose();
  339. }
  340. }
  341. void RetargetModifier3D::set_profile(Ref<SkeletonProfile> p_profile) {
  342. if (profile == p_profile) {
  343. return;
  344. }
  345. _profile_changed(profile, p_profile);
  346. }
  347. Ref<SkeletonProfile> RetargetModifier3D::get_profile() const {
  348. return profile;
  349. }
  350. void RetargetModifier3D::set_use_global_pose(bool p_use_global_pose) {
  351. if (use_global_pose == p_use_global_pose) {
  352. return;
  353. }
  354. use_global_pose = p_use_global_pose;
  355. cache_rests_with_reset();
  356. notify_property_list_changed();
  357. }
  358. bool RetargetModifier3D::is_using_global_pose() const {
  359. return use_global_pose;
  360. }
  361. void RetargetModifier3D::set_enable_flags(BitField<TransformFlag> p_enable_flag) {
  362. if (enable_flags != p_enable_flag) {
  363. _reset_child_skeleton_poses();
  364. }
  365. enable_flags = p_enable_flag;
  366. }
  367. BitField<RetargetModifier3D::TransformFlag> RetargetModifier3D::get_enable_flags() const {
  368. return enable_flags;
  369. }
  370. void RetargetModifier3D::set_position_enabled(bool p_enabled) {
  371. if (enable_flags.has_flag(TRANSFORM_FLAG_POSITION) != p_enabled) {
  372. _reset_child_skeleton_poses();
  373. }
  374. if (p_enabled) {
  375. enable_flags.set_flag(TRANSFORM_FLAG_POSITION);
  376. } else {
  377. enable_flags.clear_flag(TRANSFORM_FLAG_POSITION);
  378. }
  379. }
  380. bool RetargetModifier3D::is_position_enabled() const {
  381. return enable_flags.has_flag(TRANSFORM_FLAG_POSITION);
  382. }
  383. void RetargetModifier3D::set_rotation_enabled(bool p_enabled) {
  384. if (enable_flags.has_flag(TRANSFORM_FLAG_ROTATION) != p_enabled) {
  385. _reset_child_skeleton_poses();
  386. }
  387. if (p_enabled) {
  388. enable_flags.set_flag(TRANSFORM_FLAG_ROTATION);
  389. } else {
  390. enable_flags.clear_flag(TRANSFORM_FLAG_ROTATION);
  391. }
  392. }
  393. bool RetargetModifier3D::is_rotation_enabled() const {
  394. return enable_flags.has_flag(TRANSFORM_FLAG_ROTATION);
  395. }
  396. void RetargetModifier3D::set_scale_enabled(bool p_enabled) {
  397. if (enable_flags.has_flag(TRANSFORM_FLAG_SCALE) != p_enabled) {
  398. _reset_child_skeleton_poses();
  399. }
  400. if (p_enabled) {
  401. enable_flags.set_flag(TRANSFORM_FLAG_SCALE);
  402. } else {
  403. enable_flags.clear_flag(TRANSFORM_FLAG_SCALE);
  404. }
  405. }
  406. bool RetargetModifier3D::is_scale_enabled() const {
  407. return enable_flags.has_flag(TRANSFORM_FLAG_SCALE);
  408. }
  409. void RetargetModifier3D::_notification(int p_what) {
  410. switch (p_what) {
  411. case NOTIFICATION_ENTER_TREE: {
  412. _update_child_skeletons();
  413. } break;
  414. #ifdef TOOLS_ENABLED
  415. case NOTIFICATION_EDITOR_PRE_SAVE: {
  416. _reset_child_skeleton_poses();
  417. _force_update_child_skeletons();
  418. } break;
  419. #endif // TOOLS_ENABLED
  420. case NOTIFICATION_EXIT_TREE: {
  421. _reset_child_skeletons();
  422. } break;
  423. }
  424. }
  425. RetargetModifier3D::RetargetModifier3D() {
  426. }
  427. RetargetModifier3D::~RetargetModifier3D() {
  428. }