summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2017-12-29 12:36:44 -0300
committerJuan Linietsky <juan@godotengine.org>2017-12-29 12:36:44 -0300
commitc595aff4a30f79cc75a30decfad7243c03824bab (patch)
tree39df34a2e6c26e6c8cb799386fefd24e10a1aee3 /scene
parent2de70698ae2b3c94668556140e4c0197cff3327b (diff)
avoid error on setting skeleton from transform changed
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/skeleton.cpp3
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];