Explorar o código

avoid error on setting skeleton from transform changed

Juan Linietsky %!s(int64=7) %!d(string=hai) anos
pai
achega
c595aff4a3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      scene/3d/skeleton.cpp

+ 3 - 0
scene/3d/skeleton.cpp

@@ -155,6 +155,9 @@ void Skeleton::_notification(int p_what) {
 		} break;
 		case NOTIFICATION_TRANSFORM_CHANGED: {
 
+			if (dirty)
+				break; //will be eventually updated
+
 			//if moved, just update transforms
 			VisualServer *vs = VisualServer::get_singleton();
 			Bone *bonesptr = &bones[0];