- Fix for Wkey menu in WeightPaint modus; it didn't work when the armature

is a modifier only (Armature not parented to Mesh).
  Note; if multiple Modifier/Armatures work, it uses only the first still.

- Armature option 'draw axes' now scales axes to 0.25 of bone length.
This commit is contained in:
2005-10-20 14:58:46 +00:00
parent 7a7dadc107
commit cfab1a9e6a
3 changed files with 7 additions and 4 deletions

View File

@@ -39,6 +39,7 @@
#include "DNA_constraint_types.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
@@ -52,6 +53,7 @@
#include "BKE_DerivedMesh.h"
#include "BKE_displist.h"
#include "BKE_global.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_utildefines.h"
@@ -609,7 +611,7 @@ void pose_adds_vgroups(Object *meshobj)
{
struct vgroup_map map;
DerivedMesh *dm;
Object *poseobj= meshobj->parent;
Object *poseobj= modifiers_isDeformedByArmature(meshobj);
bPoseChannel *pchan;
Bone *bone;
bDeformGroup *dg;