Changeset View
Changeset View
Standalone View
Standalone View
io_scene_ms3d/ms3d_spec.py
| Context not available. | |||||
| _number_group_comments, _number_groups)) | _number_group_comments, _number_groups)) | ||||
| for i in range(_number_group_comments): | for i in range(_number_group_comments): | ||||
| item = Ms3dCommentEx().read(raw_io) | item = Ms3dCommentEx().read(raw_io) | ||||
| if item.index >= 0 and item.index < _number_groups: | if 0 <= item.index < _number_groups: | ||||
| self.groups[item.index]._comment_object = item | self.groups[item.index]._comment_object = item | ||||
| else: | else: | ||||
| debug_out.append("\nwarning, invalid index:"\ | debug_out.append("\nwarning, invalid index:"\ | ||||
| Context not available. | |||||
| _number_material_comments, _number_materials)) | _number_material_comments, _number_materials)) | ||||
| for i in range(_number_material_comments): | for i in range(_number_material_comments): | ||||
| item = Ms3dCommentEx().read(raw_io) | item = Ms3dCommentEx().read(raw_io) | ||||
| if item.index >= 0 and item.index < _number_materials: | if 0 <= item.index < _number_materials: | ||||
| self.materials[item.index]._comment_object = item | self.materials[item.index]._comment_object = item | ||||
| else: | else: | ||||
| debug_out.append("\nwarning, invalid index:"\ | debug_out.append("\nwarning, invalid index:"\ | ||||
| Context not available. | |||||
| _number_joint_comments, _number_joints)) | _number_joint_comments, _number_joints)) | ||||
| for i in range(_number_joint_comments): | for i in range(_number_joint_comments): | ||||
| item = Ms3dCommentEx().read(raw_io) | item = Ms3dCommentEx().read(raw_io) | ||||
| if item.index >= 0 and item.index < _number_joints: | if 0 <= item.index < _number_joints: | ||||
| self.joints[item.index]._comment_object = item | self.joints[item.index]._comment_object = item | ||||
| else: | else: | ||||
| debug_out.append("\nwarning, invalid index:"\ | debug_out.append("\nwarning, invalid index:"\ | ||||
| Context not available. | |||||