johnroper100 / CrowdMaster

Crowd Simulation for the Masses
http://crowdmaster.org
GNU General Public License v3.0
133 stars 24 forks source link

Python error if bone in Pose or Edit mode when Resetting group #54

Closed axb2035 closed 7 years ago

axb2035 commented 7 years ago

Current behavior: If you have a agent that is child object of a bone, when resetting the group if you have either the agent bone or the originating bone in Pose mode it will generate a python error. The group cannot be reset. Same error occurs if bone in Edit mode.

Expected behavior: Group is reset as if both bones are in Object mode.

Steps to repeat: Step 1: Set up a noodle as in the image below. Armature and Mesh are not grouped or parented. Set up an empty as the agent generation target.

image

Step 2: Generate agent image

Step 3: Change originating armature into Pose mode image

Step 4: Select group in tool panel (if not selected). Reset group from Tools panel. Python error will appear. Group, armature and mesh remain.

image

Step 5: Select the Agent armature bone and change to Pose mode. image

Step 6: Select group in tool panel (if not selected). Reset group from Tools panel. Python error will appear. Group, armature and mesh remain.

image

To repeat for Edit mode same instruction, replace Pose mode with Edit mode.

johnroper100 commented 7 years ago

Fixed!