diff options
author | Juan Linietsky <juan@godotengine.org> | 2017-12-29 12:36:44 -0300 |
---|---|---|
committer | Juan Linietsky <juan@godotengine.org> | 2017-12-29 12:36:44 -0300 |
commit | c595aff4a30f79cc75a30decfad7243c03824bab (patch) | |
tree | 39df34a2e6c26e6c8cb799386fefd24e10a1aee3 /scene/3d/skeleton.cpp | |
parent | 2de70698ae2b3c94668556140e4c0197cff3327b (diff) |
avoid error on setting skeleton from transform changed
Diffstat (limited to 'scene/3d/skeleton.cpp')
-rw-r--r-- | scene/3d/skeleton.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/3d/skeleton.cpp b/scene/3d/skeleton.cpp index c4eaa45935..417fe90d7c 100644 --- a/scene/3d/skeleton.cpp +++ b/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]; |