Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2021-12-21 16:22:38 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2021-12-21 18:45:46 +0300
commitaa7105f7599f8d35438444006eb1e43f211286dd (patch)
treee18b9381b007c40bb48613a5fbb2a8def974e838 /source/blender/editors/space_info/info_stats.cc
parentbdbd0cffda697eb5d60edf307771409987f60dc4 (diff)
Cleanup: use BKE_pose_is_layer_visible in more places
This was added in rBd13970de8627, now use in more places.
Diffstat (limited to 'source/blender/editors/space_info/info_stats.cc')
-rw-r--r--source/blender/editors/space_info/info_stats.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_info/info_stats.cc b/source/blender/editors/space_info/info_stats.cc
index bcf26743030..005ae0214cd 100644
--- a/source/blender/editors/space_info/info_stats.cc
+++ b/source/blender/editors/space_info/info_stats.cc
@@ -43,6 +43,7 @@
#include "BLT_translation.h"
+#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_blender_version.h"
#include "BKE_context.h"
@@ -351,7 +352,7 @@ static void stats_object_pose(const Object *ob, SceneStats *stats)
LISTBASE_FOREACH (bPoseChannel *, pchan, &ob->pose->chanbase) {
stats->totbone++;
if (pchan->bone && (pchan->bone->flag & BONE_SELECTED)) {
- if (pchan->bone->layer & arm->layer) {
+ if (BKE_pose_is_layer_visible(arm, pchan)) {
stats->totbonesel++;
}
}