You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Cache mesh AABB when modified by skeleton and update instance AABB when
skeleton changes
This commit is contained in:
@@ -476,6 +476,7 @@ public:
|
||||
Instance *instance = (Instance *)tracker->userdata;
|
||||
switch (p_notification) {
|
||||
case Dependency::DEPENDENCY_CHANGED_SKELETON_DATA:
|
||||
case Dependency::DEPENDENCY_CHANGED_SKELETON_BONES:
|
||||
case Dependency::DEPENDENCY_CHANGED_AABB: {
|
||||
singleton->_instance_queue_update(instance, true, false);
|
||||
|
||||
@@ -491,8 +492,7 @@ public:
|
||||
case Dependency::DEPENDENCY_CHANGED_REFLECTION_PROBE: {
|
||||
singleton->_instance_queue_update(instance, true, true);
|
||||
} break;
|
||||
case Dependency::DEPENDENCY_CHANGED_MULTIMESH_VISIBLE_INSTANCES:
|
||||
case Dependency::DEPENDENCY_CHANGED_SKELETON_BONES: {
|
||||
case Dependency::DEPENDENCY_CHANGED_MULTIMESH_VISIBLE_INSTANCES: {
|
||||
//ignored
|
||||
} break;
|
||||
case Dependency::DEPENDENCY_CHANGED_LIGHT_SOFT_SHADOW_AND_PROJECTOR: {
|
||||
|
||||
Reference in New Issue
Block a user