Browse Source

Merge pull request #101448 from TokageItLab/save-retarget

Add missing `TOOLS_ENABLED` block to `RetargetModifier3D`
Rémi Verschelde 7 months ago
parent
commit
c5a62c36f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scene/3d/retarget_modifier_3d.cpp

+ 2 - 0
scene/3d/retarget_modifier_3d.cpp

@@ -452,9 +452,11 @@ void RetargetModifier3D::_notification(int p_what) {
 		case NOTIFICATION_ENTER_TREE: {
 			_update_child_skeletons();
 		} break;
+#ifdef TOOLS_ENABLED
 		case NOTIFICATION_EDITOR_PRE_SAVE: {
 			_reset_child_skeleton_poses();
 		} break;
+#endif // TOOLS_ENABLED
 		case NOTIFICATION_EXIT_TREE: {
 			_reset_child_skeletons();
 		} break;