Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_armature.c
| Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void rna_Bone_layer_set(PointerRNA *ptr, const bool *values) | static void rna_Bone_layer_set(PointerRNA *ptr, const bool *values) | ||||
| { | { | ||||
| bArmature *arm = (bArmature *)ptr->owner_id; | bArmature *arm = (bArmature *)ptr->owner_id; | ||||
| Bone *bone = (Bone *)ptr->data; | Bone *bone = (Bone *)ptr->data; | ||||
| rna_bone_layer_set(&bone->layer, values); | rna_bone_layer_set(&bone->layer, values); | ||||
| BKE_armature_refresh_layer_used(NULL, arm); | |||||
| BKE_armature_refresh_layer_used(arm); | |||||
| } | } | ||||
| /* TODO: remove the deprecation stubs. */ | /* TODO: remove the deprecation stubs. */ | ||||
| static bool rna_use_inherit_scale_get(char inherit_scale_mode) | static bool rna_use_inherit_scale_get(char inherit_scale_mode) | ||||
| { | { | ||||
| return inherit_scale_mode <= BONE_INHERIT_SCALE_FIX_SHEAR; | return inherit_scale_mode <= BONE_INHERIT_SCALE_FIX_SHEAR; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,237 Lines • Show Last 20 Lines | |||||