Skip to content

Commit

Permalink
Merge pull request #42750 from lawnjelly/pouley_skin_visible
Browse files Browse the repository at this point in the history
Change per frame software skinning check to is_visible
  • Loading branch information
akien-mga authored Oct 12, 2020
2 parents a392aa4 + 0abae18 commit 0a2a93b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scene/3d/mesh_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ void MeshInstance::_initialize_skinning(bool p_force_reset) {

void MeshInstance::_update_skinning() {
ERR_FAIL_COND(!_is_software_skinning_enabled());
#if defined(TOOLS_ENABLED) && defined(DEBUG_ENABLED)
ERR_FAIL_COND(!is_visible_in_tree());
#else
ERR_FAIL_COND(!is_visible());
#endif

ERR_FAIL_COND(!software_skinning);
Ref<Mesh> software_skinning_mesh = software_skinning->mesh_instance;
Expand Down

0 comments on commit 0a2a93b

Please sign in to comment.