avoid error on setting skeleton from transform changed

This commit is contained in:
Juan Linietsky 2017-12-29 12:36:44 -03:00
parent 2de70698ae
commit c595aff4a3

View file

@ -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];